Is there a way to enable Source Linking with Nuget packages that are published with Release configuration?
We configured a local nuget server in which we store our framework dlls that are built with Release configurations. Client applications reference these dlls and we want to debug the framework from them.
I could make it work with packing the framework code with Debug configuration but in Release mode, the .pdb
files are not loaded and I can confirm it on Modules Window in VS 2017.
Here is my configuration for source linking:
<Project>
<ItemGroup>
<PackageReference Include="SourceLink.Embed.AllSourceFiles" Version="2.8.1" PrivateAssets="all" />
</ItemGroup>
</Project>
Edit: I use Visual Studio 2017 version 15.7.3. I target .NET Core 2.1. I confirmed that pdb files are embedded into nupkg files and they are in the same directory with the dlls. Debug mode just works though.