Include the pdb file in the .nupkg

Works around jbevain/cecil#610

Using InlineIL.Fody messes up the pdb checksum which makes nuget.org consider the .snupkg to be invalid. Workaround this by including the pdb in the main .nupkg
This commit is contained in:
Alex Barney 2021-12-16 13:28:16 -07:00
parent 9451553fde
commit 8ccd4e11c0

View file

@ -26,6 +26,9 @@
<PathMap Condition=" '$(BuildType)' == 'Release' and '$(HasGitDir)' == 'false' ">$(MSBuildProjectDirectory)=C:/LibHac/</PathMap> <PathMap Condition=" '$(BuildType)' == 'Release' and '$(HasGitDir)' == 'false' ">$(MSBuildProjectDirectory)=C:/LibHac/</PathMap>
<DeterministicSourcePaths Condition=" '$(BuildType)' == 'Release' and '$(HasGitDir)' == 'true' ">true</DeterministicSourcePaths> <DeterministicSourcePaths Condition=" '$(BuildType)' == 'Release' and '$(HasGitDir)' == 'true' ">true</DeterministicSourcePaths>
<!-- Workaround https://github.com/jbevain/cecil/issues/610 by including the pdb in the main .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<NoWarn>$(NoWarn);1591</NoWarn> <NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup> </PropertyGroup>
@ -41,7 +44,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Fody" Version="6.5.2" PrivateAssets="All" /> <PackageReference Include="Fody" Version="6.5.2" PrivateAssets="All" />
<PackageReference Include="InlineIL.Fody" Version="1.7.1" PrivateAssets="All" /> <PackageReference Include="InlineIL.Fody" Version="1.7.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" /> <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup> </ItemGroup>
<!-- Configuration for Fody --> <!-- Configuration for Fody -->