I am getting the following error when I run the following command
C:\Program Files\Microsoft Visual Studio\2022\Enterprise>dotnet tool install --global dotnet-ef --version 6.0.3
C:\Users\User\AppData\Local\Temp\[login to view URL]\[login to view URL](5,31): error MSB4236: The SDK '[login to view URL]' specified could not be found.
The tool package could not be restored.
Tool 'dotnet-ef' failed to install. This failure may have been caused by:
* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.
For more reasons, including package naming enforcement, visit [login to view URL]
Details of my development enviroment are as follows
C:\Program Files\Microsoft Visual Studio\2022\Enterprise>dotnet --info
.NET SDK (reflecting any [login to view URL]):
Version: 6.0.101
Commit: ef49f6213a
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19042
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\6.0.101\
Host (useful for support):
Version: 6.0.1
Commit: 3a25a7f1cc
.NET SDKs installed:
5.0.100 [C:\Program Files\dotnet\sdk]
5.0.102 [C:\Program Files\dotnet\sdk]
6.0.101 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
[login to view URL] 5.0.0 [C:\Program Files\dotnet\shared\[login to view URL]]
[login to view URL] 6.0.1 [C:\Program Files\dotnet\shared\[login to view URL]]
[login to view URL] 5.0.0 [C:\Program Files\dotnet\shared\[login to view URL]]
[login to view URL] 6.0.0-rc.1.21451.13 [C:\Program Files\dotnet\shared\[login to view URL]]
[login to view URL] 6.0.1 [C:\Program Files\dotnet\shared\[login to view URL]]
[login to view URL] 5.0.0 [C:\Program Files\dotnet\shared\[login to view URL]]
[login to view URL] 6.0.1 [C:\Program Files\dotnet\shared\[login to view URL]]
To install additional .NET runtimes or SDKs:
[login to view URL]
Where I am getting it wrong?
Hi,
I am ab infrastructure expert with deep understanding of windows environment. I am confident that I will be able to solve your issue.
Kind Regards,
Susmit