Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Comment thread
apoorvdeshmukh marked this conversation as resolved.

</PropertyGroup>

Expand All @@ -85,7 +89,8 @@
<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
Comment thread
apoorvdeshmukh marked this conversation as resolved.
Outdated
and diagnostics.</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageTags>sqlclient microsoft.data.sqlclient extensions logging</PackageTags>
<RepositoryType>git</RepositoryType>
Expand Down Expand Up @@ -115,4 +120,29 @@
</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"
Comment thread
apoorvdeshmukh marked this conversation as resolved.
Outdated
Condition="'$(GenerateDocumentationFile)' == 'true' AND Exists('$(DocumentationFile)')">
<MakeDir Directories="$(Artifacts)/doc/$(TargetFramework)/" />
<Copy SourceFiles="$(DocumentationFile)"
DestinationFolder="$(Artifacts)/doc/$(TargetFramework)/" />
</Target>

<Target Name="TrimDocsForIntelliSense" AfterTargets="SaveUntrimmedDocs"
Comment thread
apoorvdeshmukh marked this conversation as resolved.
Outdated
Condition="'$(GenerateDocumentationFile)' == 'true' AND Exists('$(DocumentationFile)')">
<Exec
Comment thread
apoorvdeshmukh marked this conversation as resolved.
Outdated
Command="powershell.exe -NonInteractive -ExecutionPolicy Unrestricted -Command &quot;$(ToolsDir)intellisense\TrimDocs.ps1 -inputFile '$(DocumentationFile)' -outputFile '$(DocumentationFile)'&quot;"
Condition=" '$(OS)' == 'Windows_NT' " />
<Exec
Command="pwsh -NonInteractive -ExecutionPolicy Unrestricted -Command &quot;$(ToolsDir)intellisense\TrimDocs.ps1 -inputFile '$(DocumentationFile)' -outputFile '$(DocumentationFile)'&quot;"
Condition=" '$(OS)' != 'Windows_NT' " />
</Target>

</Project>
Loading
Loading