Questions tagged [sourcelink]

SourceLink allows .NET library users to download on demand the exact version of the source files.

This tag is for any support questions for using SourceLink, for example:

  • How to get SourceLink.exe working with their library
  • How to use SourceLink.Fake in a FAKE build script
  • How to integrate SourceLink with AppVeyor, TFS Build, or another CI server

SourceLink is documented at http://ctaggart.github.io/SourceLink/.

41 questions
2
votes
0 answers

Best practice for using Source Link

I am trying to implement Source Link in a NuGet package. I have successfully implemented the instructions in the GitHub README (https://github.com/dotnet/sourcelink), but am confused about which artifacts to upload to our NuGet package source…
infl3x
  • 1,492
  • 19
  • 26
2
votes
1 answer

Can I run SourceLink manually on existing PDB files?

Suppose I have built a (C++ or .NET) library from source, so I have source code and PDB files locally, but I don't want to modify the library code to e.g. add /SOURCELINK or a nuget package. Is it possible to run sourcelink on the command-line to…
Boinst
  • 3,365
  • 2
  • 38
  • 60
2
votes
2 answers

SLOW in changing SourceFullName in powerpoint linked objects through vba

I'm experiencing SLOW changing, NOT updating, the links in powerpoint presentation for linked objects. Sample codes are as below: For Each sld In ActivePresentation.Slides For Each shp In sld.Shapes If shp.Type = msoLinkedOLEObject Then…
Steve Z.
  • 93
  • 9
1
vote
0 answers

Docker Compose Not Allowing External Library Debugging

I'm trying to debug an inhouse library while running my application in a container using docker-compose. I've setup the internal library with the following settings as per the SourceLink documentation SourceLink. I am publishing the NUGET package to…
Darren
  • 335
  • 2
  • 11
1
vote
1 answer

Difference between Source Link and a NuGet symbol package

While debugging I can step into external dependencies and our own nuget packages, if they were compiled to symbol packages (MyProject.snupkg) and uploaded to the nuget server. This is how we do it for our own nuget packages on our private nuget…
lonix
  • 14,255
  • 23
  • 85
  • 176
1
vote
2 answers

Debug nuget packages on Visual Studio for Mac not working

I have some nuget package hosted in my gitlab project. And I need debug this package and can't do this on Visual Studio for Mac. Here is my csproj file:
1
vote
2 answers

.NET Source Link: "Source not found" despite correct link

I think I set up everything correctly. My symbols are created and I configured Visual Studio after this tutorial. I can step into other libraries like JsonNet. When I try to step into my code it tries to load the code from the correct path. (I can…
BaluJr.
  • 1,010
  • 2
  • 11
  • 25
1
vote
2 answers

File not found: Source link authentication failed

I have two solutions that are libraries to my other projects First one is called the framework and the second one is the library. some projects on the solution are .net standard 2.1 and some are .net core 3.1 each solution is in a different git…
Luiz Bicalho
  • 813
  • 1
  • 12
  • 30
1
vote
0 answers

SourceLink Authentication error when using Microsoft.SourceLink.AzureRepos.Git

I am trying to enable SourceLink for our internal NuGet packages and am running into a problem where I don't see how I can solve it. My setup is: Visual Studio 2019 Enterprise (16.3.8) An Azure DevOps git repository A .NET Framework 4.7.2 class…
davidm
  • 86
  • 6
1
vote
1 answer

SourceLink: PDB File Name Casing Does Not Match Repository, Breaking SourceLink

Is there any way of configuring the linker in Visual Studio so that file names (and paths) embedded in the .pdb file maintain their casing? We have a Visual Studio C++/Cli DLL that we'd like to package with NuGet. We want to use SourceLink so that…
JamesCo
  • 13
  • 2
1
vote
0 answers

SourceLink: Embed source with relative paths?

By adding the tag in my .csproj file, I was able to embed the source files of my library in the nuget package. This was good. However, when I try to…
Gordon Bean
  • 4,272
  • 1
  • 32
  • 47
1
vote
0 answers

SourceLink - Stepping into async base class method not working

In my NuGet Package where SourceLink is enabled and working I have a ServiceBase class which contains async methods for Get, Post, Update etc. Stepping into the constructor of the base class works fine, also stepping into any synchronous methods. If…
Matteo
  • 232
  • 3
  • 17
0
votes
0 answers

Can't get Source Link to work in a .NET 5 library hosted in Github

I'm trying to get Source Link set up for a .NET 5 C# library hosted in Github. Currently inside my library project, the .csproj file looks like this: net5.0
Øyvind Bråthen
  • 59,338
  • 27
  • 124
  • 151
0
votes
0 answers

SourceLink and Azure DevOps

Have I got it right that AzureDevOps doesn't support snupkg therefore you have to use the PublishSymbols task which only works on Agent.OS -equals Windows_NT? - task: PowerShell@2 displayName: 'dotnet pack' condition:…
Richard Barraclough
  • 2,625
  • 3
  • 36
  • 54
0
votes
0 answers

Debugging a nuget package built by Azure Devops doesn't work

Let me start by saying if I build the package locally and publish it to a local drive, everything works as expected. If the same steps are done in Azure DevOps and the package is published to our private/company feed, debugging does not work (the…
sasharz
  • 780
  • 5
  • 8