Skip to content

github sourcelink does not work; it generates wrong URLs? #1159

Open

Description

@sokunna

I am using .net 8 which has SourceLink enabled by default. DebugType is set to embedded and nuget package seems to be created correctly when looking in nuget package explorer. However clicking on the source URLs takes me to a 404 not found page. When attempting to step into the source code in Visual Studio, it does not attempt to download any source code from github, but instead it's asking me to browse to the source file locally instead.
image

Modules says it's partially decomplied?
image
image

I also got the same result when using .net 6 or .net standard projects (with the instruction here https://learn.microsoft.com/en-us/visualstudio/debugger/how-to-improve-diagnostics-debugging-with-sourcelink?view=vs-2022).

Any help is appreciated!

Activity

  1. tmat commented on Dec 12, 2023

    @tmat
    Member
  2. stijnherreman commented on Feb 11, 2024

    @stijnherreman

    Is it a private repository? Because then it's expected behaviour. The links point directly to raw.githubusercontent.com, while the 'Raw' button on GitHub points to github.com and redirects to raw.githubusercontent.com with a ?token=... query parameter added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions