Skip to content

Commit

Permalink
Include the pdb file in the .nupkg
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Thealexbarney committed Dec 17, 2021
1 parent 9451553 commit 8ccd4e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/LibHac/LibHac.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<PathMap Condition=" '$(BuildType)' == 'Release' and '$(HasGitDir)' == 'false' ">$(MSBuildProjectDirectory)=C:/LibHac/</PathMap>
<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>
</PropertyGroup>

Expand All @@ -41,7 +44,7 @@
<ItemGroup>
<PackageReference Include="Fody" Version="6.5.2" 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>

<!-- Configuration for Fody -->
Expand Down

0 comments on commit 8ccd4e1

Please sign in to comment.