-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet build -v diag
does not provide enough diagnostics about Nuget restore
#18048
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
@msfcolombo you can try using a binlog to investigate. @nkolev92 are there any nuget specific logging methods that can be looked at here? |
It seems like the failure is coming from the MSBuild nuget SDK resolver. It's using a "fake" project, hence name with guids. It seems like it's loading all configs above the project file path that is declaring the SDK: microsoft.build.traversal So I'd look for a config above project that's declaring that SDK. |
Thanks for creating this issue! We believe this issue is related to NuGet tooling, which is maintained by the NuGet team. Thus, we closed this one and encourage you to raise this issue in the NuGet repository instead. Don’t forget to check out NuGet’s contributing guide before submitting an issue! If you believe this issue was closed out of error, please comment to let us know. Happy Coding! |
According to the build log below, the
dotnet build
command is trying to access projectC:\Users\johns\AppData\Local\Temp\NuGetScratch\57ff535248c742eb9fd7acaa4cedc232\118c797d4f8849aca719bca50f33ee45.proj
and Nuget feedhttps://pkgs.dev.contoso.org/feedproj/fe545156-aa3d-6d2c-1209-a4ed12782004/_packaging/mainfeed02
.I have absolutely no idea from where it is taking these values. The current directory has no reference to the
proj
above, and thenuget.config
has no reference to the feed above.I have searched the following places:
nuget.config
of current directory and all parent directories.%appdata%\NuGet\NuGet.Config
.global.json
file in current directory.If I install any package on same directory, running
nuget install -verbosity detailed newtonsoft.json -version 6.0.1
, it uses the correct feed. It does not even mention the wrong feed.The log below was generated with
dotnet build -v diag
. How am I supposed to diagnose this if the log does not include the configuration files and/or environment variables used to determine the restore locatioons?The text was updated successfully, but these errors were encountered: