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 C:\Users\Foo\.nuget\packages\My.Package\1.1.0-beta-0040\lib\netstandard2.0\My.Package.dll
{"documents":{"C:\\projects\\my-package\\*":"https://raw.githubusercontent.com/username/My.Package/aba3ab5d12f1271943b8db0d79e1ee25ad4735c2f/*"}}
I have unchecked Enable Just My Code
in Visual Studio, and I have checked Enable Source Link support
and Fall back to Git Credential Manager authentication for all Source Link requests
.
But when I debug, the debugger won't step into the package. I would expect the dialog about "source link will be downloaded from the internet" to show, but nothing happens. The debugger just steps over the line of code.
Since the document path is correct, expect for the missing token
key in the URI, I draw the conclusion that the NuGet package itself has been packed correctly, thus I don't give any details about that process.
The files are not downloadable, but that is due to the authentication not taking place, isn't it?
sourcelink test C:\Users\Foo\.nuget\packages\My.Package\1.1.0-beta-0040\lib\netstandard2.0\My.Package.dll
{"documents":{"C:\\projects\\my-package\\*":"https://raw.githubusercontent.com/username/My.Package/aba3ab5d12f1271943b8db0d79e1ee25ad4735c2f/*"}}
2 Documents with errors:
111111111117629326ff4b1b85b15fad279137fe sha1 csharp C:\projects\my-package\src\My.Package\Extensions.cs
https://raw.githubusercontent.com/username/My.Package/11111111111095e33b8db0d79e1ee25ad4735c2f/src/My.Package/Extensions.cs
error: url failed NotFound: Not Found
1111111111184ac4af0122bdae9216bd24036e8f sha1 csharp C:\projects\my-package\src\My.Package\MyProgram.cs
https://raw.githubusercontent.com/username/My.Package/11111111111095e33b8db0d79e1ee25ad4735c2f/src/My.Package/MyProgram.cs
error: url failed NotFound: Not Found
sourcelink test failed
Am I missing any configuration here?