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
23
votes
1 answer

Source Link with an Azure DevOps Symbol Server

There are several documented ways on internet on how to use Symbols Source files and Source Link to debug inside a Nuget Package but it's honestly hard to understand what is the good way for me. We have an Azure DevOps Server on which we generate…
14
votes
0 answers

Azure DevOps SourceLink and Symbol Server with Release DLL in Nuget package

I have a .NET Standard 2.0 TestSouceLink project with the following configuration in the .csproj: netstandard2.0 PackageReference
Jérôme MEVEL
  • 7,031
  • 6
  • 46
  • 78
11
votes
2 answers

Go to Implementation with sourcelink

How can I enable visual studio to 'Go to implementation' for library code that is exposed with SourceLink? We recently began using SourceLink in our .NETcore library in an attempt to debug the library while consuming it. We enabled SourceLink using…
Nick BL
  • 363
  • 2
  • 13
9
votes
0 answers

How to debug asp.net core async method using Source Link?

I am trying to debug asp.net core internals to see what is going on under the hood. I set up .net core debugging in VS Code according to this article: https://github.com/OmniSharp/omnisharp-vscode/wiki/Debugging-into-the-.NET-Framework-itself Now I…
Dmitrii
  • 1,247
  • 4
  • 14
  • 28
9
votes
2 answers

Debug NuGet package with Azure Devops and Source Link

I am trying to get SourceLink to work with a private NuGet package. I am running a netcore2.1 web application which references a netstandard2.0 NuGet package hosted on our Azure Devops NuGet feed. Question 1: Does Source Link support .NET Standard…
Matt Frear
  • 52,283
  • 12
  • 78
  • 86
5
votes
0 answers

Can't step into SourceLink enabled NuGet hosted in private repo

I am using Visual Studio 15.8.4 referencing a NuGet package from a private MyGet feed. The source code is hosted by a private repo at GitHub. I can successfully print the mapping document in the file: sourcelink print-json…
Kristoffer Jälén
  • 4,112
  • 3
  • 30
  • 54
4
votes
1 answer

Using SourceLink V2 debugging with async methods. Is it possible?

We are starting to use SourceLink V2 on a project for debugging our internal nuget packages. We have it set up properly (as best as we can tell) and are able to successfully debug into normal, synchronous methods. Unfortunately, much of our code is…
4
votes
2 answers

Is source indexing for Git builds possible in TFS 2013?

According to this post from January, source indexing was "not supported in TFS Builds running against Git source control". Have any of the updates made this possible yet?
Cameron Taggart
  • 5,771
  • 4
  • 45
  • 70
3
votes
2 answers

Why can't I debug my nuget package with sourcelink?

I've enabled source link in my csproj and used github actions to publish my nuget, but adding PublishRepositoryUrl property and referencing Microsoft.SourceLink.GitHub package. However, when I reference the package, I cannot step into the code nor…
Liero
  • 25,216
  • 29
  • 151
  • 297
3
votes
2 answers

Nuget packages with both debug and release

In our work we have one team that develops libraries and other teams that develop projects using those libraries. The libraries team has much more experience than the projects one. We created this environment here: All the libraries are in nuget…
Luiz Bicalho
  • 813
  • 1
  • 12
  • 30
3
votes
2 answers

Enabling SourceLink

Having private repositories on VSTS (Azure DevOps) I tried enabling SourceLink by adding the following to the .csproj file: https://github.com/dotnet/sourcelink#azure-devops-visual-studio-team-services This does not seem to have any effect during…
Răzvan Flavius Panda
  • 21,730
  • 17
  • 111
  • 169
3
votes
1 answer

How to correctly use the linker /SOURCELINK option with c++

We are using SourceLink with c# projects and it is working just fine. When we try to use it on C++ projects the /SOURCELINK option in the linker seems to be ignored as there is no relevant metadata in the produced PDB I am using this MSBuild: …
Sam Mackrill
  • 4,004
  • 8
  • 35
  • 55
3
votes
1 answer

SourceLink with Release configuration

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…
yakya
  • 4,559
  • 2
  • 29
  • 31
3
votes
1 answer

SourceLink in VSTS

I'm trying to integrate SourceLink into Visual Studio Team Services by using https://github.com/ctaggart/SourceLink I have problems with it since the package seems unable to parse the URL of a VSTS repository. Build started 8/22/2017 11:58:18 AM. …
ferarias
  • 333
  • 2
  • 11
2
votes
0 answers

VS Code Source Link

Has anyone gotten SourceLink to work in VS Code such that it allows Go To Definition code navigation as well as debugging into the ASP.Net Source Code pulled from the Microsoft symbol servers? I have added the following additional lines to my…
docjosh
  • 85
  • 1
  • 1
  • 8
1
2 3