Skip to content

Commit 55229e8

Browse files
committed
Use <DebugType>portable</DebugType> to avoid embedding the PDBs in the assemblies
1 parent 24568a8 commit 55229e8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
path: ./artifacts/TestResults/Release
8989

9090
- name: Push NuGet packages to aspnet-contrib MyGet
91-
run: dotnet nuget push "artifacts\packages\Release\Shipping\*.nupkg" --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate --source https://www.myget.org/F/aspnet-contrib/ --symbol-source https://www.myget.org/F/aspnet-contrib/
91+
run: dotnet nuget push "artifacts\packages\Release\Shipping\*.nupkg" --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate --source https://www.myget.org/F/aspnet-contrib/api/v3/index.json
9292
if: ${{ github.repository_owner == 'aspnet-contrib' && (github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/heads/rel/') || startsWith(github.ref, 'refs/tags/')) && runner.os == 'Windows' }}
9393

9494
- name: Push NuGet packages to NuGet.org

Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
<NoWarn>$(NoWarn);CS1591</NoWarn>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
99
<DebugSymbols>true</DebugSymbols>
10+
<DebugType>portable</DebugType>
11+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1012
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
1113
<DefineConstants Condition=" '$(Configuration)' == 'Debug' ">$(DefineConstants);JETBRAINS_ANNOTATIONS</DefineConstants>
1214
<Nullable>enable</Nullable>
@@ -49,7 +51,6 @@
4951

5052
<PropertyGroup Condition=" $(RepoRelativeProjectDir.Contains('src')) ">
5153
<GenerateDocumentationFile>true</GenerateDocumentationFile>
52-
<IncludeSource>true</IncludeSource>
5354
<IncludeSymbols>true</IncludeSymbols>
5455
<IsPackable>true</IsPackable>
5556
<IsShipping>true</IsShipping>

0 commit comments

Comments
 (0)