1

I have build some NuGet packages for my own libraries (a couple classic .nupkg containing just the library dll and one containing the pdb-file - the .snupkg extension) I have copied the NuGet packages into the directory of the local private NuGet repository.

Now, I have a code referencing the libraries through the NuGet packages from that local NuGet rep. I supposed I can step into the library code, but it does not work - is it somehow possible out of box /using 3rd party free tools?

Actually for a time it looked it worked, but that was probably made, that I had the symbols in my symbol cache before. :)

I noticed from SourceLink page, that it solves stepping into the code through known online providers (GitHub, BitBucket, ...) - does it by chance support also a kind of "offline" storage of the NuGet packages?

9
  • Yes, you can use a local repo of nuget packages that contain the pdb files. Are the pdb files getting loaded? You can check in Visual Studio. Commented Feb 27, 2019 at 15:24
  • It is good to hear it is possible - unfortunatelly I don't know much about SourceLink, I have added - PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-*" PrivateAssets="All" , but I have got a warnings: .nuget\~microsoft.sourcelink.github\1.0.0-beta2-18618-05\build\~\SourceLink.GitHub.targets(40,5): warningL Unable to determine repository url, the source code won't be available via source link . - to the question : No, I couldn't see the loaded symbols in the Debug Modules window for dll's coming from the Local NuGet packages
    – rychlmoj
    Commented Feb 27, 2019 at 17:18
  • 1
    For the nuget packages you are building, you can put the pdb files in them with github.com/dotnet/sourcelink#alternative-pdb-distribution Commented Feb 28, 2019 at 22:00
  • 1
    You don't need SourceLink.Embed.AllSourceFiles. It has been replaced by built-in .NET SDK functionality. See github.com/ctaggart/SourceLink/releases/tag/3.0.0 Commented Mar 5, 2019 at 14:04
  • 1
    To package the pdb files you need github.com/dotnet/sourcelink#alternative-pdb-distribution. If you wish to embed all the sources in those pdb files, you should use github.com/dotnet/sourcelink/tree/master/docs#embedallsources Commented Mar 7, 2019 at 22:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.