You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to some issues described in the comments of: #10295 which is now closed, I'm receiving NU1211 and NU1212 if I try to install any dotnet tool.
Exceptions (if any)
Started to reproduce after some update of VS 2022 preview which included update of dotnet.
I executed dotnet tool install --global dotnet-ef -v diag --no-cache and here is the result: dotnetlog-diag.log
Fairly certain this is because the Directory.Build.Props file in your C: users folder has an invalid package reference hence the nuget errors. Thanks to @baronfel for diagnosing this with me. Maybe we could handle this better though and call the nuget apis instead of what we currently do on to restore the fake tool project.
Thanks for the investigation, I confirm there was a Directory.Build.props file in my user folder (even though I don’t recall adding it myself). I removed the file and now any dotnet tool is installing as expected.
Describe the bug
Similar to some issues described in the comments of: #10295 which is now closed, I'm receiving NU1211 and NU1212 if I try to install any dotnet tool.
Exceptions (if any)
Started to reproduce after some update of VS 2022 preview which included update of dotnet.
I executed
dotnet tool install --global dotnet-ef -v diag --no-cache
and here is the result:dotnetlog-diag.log
Further technical details
Dotnet info:
`C:\Users\sandro>dotnet --info
.NET SDK:
Version: 7.0.200
Commit: 5341177
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.200\
Host:
Version: 7.0.3
Architecture: x64
Commit: 0a2bda10e8
.NET SDKs installed:
3.1.426 [C:\Program Files\dotnet\sdk]
6.0.309 [C:\Program Files\dotnet\sdk]
7.0.103 [C:\Program Files\dotnet\sdk]
7.0.200 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download`
The text was updated successfully, but these errors were encountered: