Skip to content

Commit c854293

Browse files
committed
User Story 37654: Create Extensions base package
- Disable .pdb file inclusion in the application package.
1 parent aae5a41 commit c854293

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/Directory.Build.props

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@
2020
> msbuild -p:configuration=Release
2121
-->
2222
<ReferenceType Condition="$(ReferenceType) == ''">Project</ReferenceType>
23+
24+
<!--
25+
We embed debug symbols in some of our application (i.e. non-symbol) NuGet
26+
packages.
27+
28+
TODO: Why are we doing this?
29+
30+
Capture the default list of extensions so the projects that _don't_ want
31+
this behaviour can revert it.
32+
-->
33+
<OriginalAllowedOutputExtensions>$(AllowedOutputExtensionsInPackageBuildOutputFolder)</OriginalAllowedOutputExtensions>
34+
<!--
35+
And now append the '.pdb' extension. This property is used by NuGet to
36+
decide which types of files will appear in the application package.
37+
-->
2338
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
2439
</PropertyGroup>
2540
<PropertyGroup Condition="$(BuildForRelease) == 'true'">

src/Microsoft.Data.SqlClient.Extensions/Extensions/src/Extensions.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@
7474
<IncludeSymbols>true</IncludeSymbols>
7575
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
7676

77+
<!--
78+
The parent Directory.Build.props file unilaterally adds '.pdb' to the
79+
file types that are included in application packages. We don't want this
80+
behaviour, so we must reset this NuGet property to its original value.
81+
-->
82+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(OriginalAllowedOutputExtensions)</AllowedOutputExtensionsInPackageBuildOutputFolder>
83+
7784
<Authors>Microsoft Corporation</Authors>
7885
<Company>Microsoft Corporation</Company>
7986
<Description>Microsoft.Data.SqlClient Extensions</Description>

0 commit comments

Comments
 (0)