-
Notifications
You must be signed in to change notification settings - Fork 323
Add API documentation generation for the Logging package #4021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
a1c7266
eec8e5f
2fa363d
d9b8741
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,8 +65,12 @@ | |
| <!-- The bin/ folder for each target framework. This contains the final build artifacts. --> | ||
| <OutputPath>$(Artifacts)/bin/$(Configuration)/$(AssemblyName)</OutputPath> | ||
|
|
||
| <!-- We put our docs in the bin/ directory as well. --> | ||
| <DocumentationFile>$(Artifacts)/doc/$(TargetFramework)/$(AssemblyName).xml</DocumentationFile> | ||
| <!-- | ||
| Generate XML documentation from /// comments. The compiler places the | ||
| XML file alongside the assembly in $(OutputPath). SDK Pack then includes | ||
| this file automatically in the NuGet package under lib/<tfm>/. | ||
| --> | ||
| <GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
|
|
||
| </PropertyGroup> | ||
|
|
||
|
|
@@ -85,7 +89,10 @@ | |
| <Title>Microsoft.Data.SqlClient.Extensions.Logging</Title> | ||
| <Authors>Microsoft</Authors> | ||
| <Company>Microsoft Corporation</Company> | ||
| <Description>Microsoft.Data.SqlClient Extensions Logging - ETW EventSource for SqlClient tracing and diagnostics.</Description> | ||
| <Description> | ||
| Microsoft.Data.SqlClient Extensions Logging - ETW EventSource for SqlClient tracing | ||
| and diagnostics. | ||
| </Description> | ||
| <Copyright>© Microsoft Corporation. All rights reserved.</Copyright> | ||
| <PackageTags>sqlclient microsoft.data.sqlclient extensions logging</PackageTags> | ||
| <RepositoryType>git</RepositoryType> | ||
|
|
@@ -115,4 +122,34 @@ | |
| </PropertyGroup> | ||
| <Import Project="$(ToolsDir)/targets/GenerateThisAssemblyCs.targets" /> | ||
|
|
||
| </Project> | ||
| <!-- | ||
| Documentation post-processing targets. | ||
|
|
||
| After building, we save the full (untrimmed) XML documentation to the | ||
| artifacts/doc/ directory for use by public documentation workflows, then | ||
| trim the in-place copy (removing <remarks> and <example> nodes) so that | ||
| the NuGet package ships a cleaner IntelliSense XML file. | ||
| --> | ||
| <Target Name="SaveUntrimmedDocs" AfterTargets="Build" | ||
| Condition="'$(GenerateDocumentationFile)' == 'true' AND Exists('$(DocumentationFile)')"> | ||
| <MakeDir Directories="$(Artifacts)/doc/$(TargetFramework)/" /> | ||
| <Copy SourceFiles="$(DocumentationFile)" | ||
| DestinationFolder="$(Artifacts)/doc/$(TargetFramework)/" /> | ||
| </Target> | ||
|
|
||
| <!-- | ||
| Select the correct PowerShell executable for the current OS so that the | ||
| TrimDocsForIntelliSense target below does not need to duplicate the command. | ||
| --> | ||
| <PropertyGroup> | ||
| <PowerShellCmd Condition="'$(OS)' == 'Windows_NT'">powershell.exe</PowerShellCmd> | ||
| <PowerShellCmd Condition="'$(OS)' != 'Windows_NT'">pwsh</PowerShellCmd> | ||
| </PropertyGroup> | ||
|
|
||
| <Target Name="TrimDocsForIntelliSense" AfterTargets="SaveUntrimmedDocs" | ||
| Condition="'$(GenerateDocumentationFile)' == 'true' AND Exists('$(DocumentationFile)')"> | ||
| <Exec | ||
apoorvdeshmukh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Command="$(PowerShellCmd) -NonInteractive -ExecutionPolicy Unrestricted -Command "$(ToolsDir)intellisense\TrimDocs.ps1 -inputFile '$(DocumentationFile)' -outputFile '$(DocumentationFile)'"" /> | ||
|
Comment on lines
+151
to
+152
|
||
| </Target> | ||
|
|
||
| </Project> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will want somewhere that all projects can share it, like
src/Directory.Build.props.