Open DavyLGinkoia opened 2 years ago
For information I caught the request sent by sourcelink and there is no authentication
GET /*****/Ginkoia.API.Common/3a6f2a068a7d8d652fe4a1af513778f27c82cff4/Ginkoia.Api.Common/Services/CollectionServicesExtensions.cs HTTP/1.1
No Proxy-Authorization Header is present.
No Authorization Header is present.
I try the same request with postman and it's work
I try to change without succes
<RepositoryUrl>https://github.com/***********/Ginkoia.API.Common</RepositoryUrl>
to
<PrivateRepositoryUrl>https://github.com/***********/Ginkoia.API.Common</PrivateRepositoryUrl>
@chuckries
For information i try with VS2022 Comunity a all works fine
I have this same problem with GHE. VS produces this output (in the "Navigate to External Sources" output) if I F12 into a nuget with source-linked pdb:
Navigating to symbol 'SYMBOL' from 'DLL'.
Symbol found in assembly path 'C:\Users\stephen.cleary\.nuget\packages\PACKAGE\VERSION\lib\TARGET\DLL.dll'
Found PDB file at 'C:\Users\stephen.cleary\.nuget\packages\PACKAGE\VERSION\lib\TARGET\DLL.pdb'
git-credential-manager-core.exe: Could not obtain credentials. Process failed with exit code -1.
ERROR: The request failed with code 404 : "Not Found". Treating 404 as authentication failure. Some services return 404 instead of 401 for authentication failures.
Notes:
token
parameter).git:
protocol, so git doesn't have any https:
credentials saved.The easiest workaround IMO is to install ReSharper and try again. Re# will bring up a notice that allows you to add your Git username and PAT:
This creates a Windows Credential:
You can take a similar path by logging in to Visual Studio and under Account Settings ensure that your GitHub Enterprise account is present. This creates a Windows Credential for GitHub for Visual Studio
. Or you can add the credential manually. Either of these approaches solved the authentication problem for me.
However, even with these credentials, VS-without-ReSharper will sometimes work but sometimes not. I believe it only gives 2 or 3 seconds for the source to be found and downloaded, which is not fast enough in my situation. In these situations I get The operation was canceled.
or A task was canceled.
in my Navigate to External Sources output. ReSharper does not have the same timeout problems.
TL;DR: Use ReSharper. VS doesn't really work well in this scenario (yet). Oh, and submit feedback to the VS team, since it's pretty clearly their problem and not a problem in this repository.
Description
I have a problem to debug and step into the source code for my package. SourceLink is not working properly for my own package (see attached screenshot).
Package Information
Basic Information
Configuration Package
Configuration Consumer
launch.json
Error Message
Acces by GitHub Web interface
I don't know where my mistake is. Please help me