error message, problem description
Later, I found that installing the rider directly still cannot solve the problem (it will automatically configure the association (path, etc.), and even download automatically, but the official visual studio will not, and I will see how to do it in detail later)
The VS2022 project could not be loaded, the specified SDK "Microsoft.NET.Sdk" could not be found
Or, the VS2017 project cannot be loaded, and the specified SDK "Microsoft.NET.Desktop.Sdk" cannot be found
downloaded from github
open source project
Reinstalled, 4 or 5 times, still life and death prompt:
=================
Failed to install one or more items
=================
Live and die for one, two hours
The key code is also very "critical", just one sentence, but you just can't figure it out
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\ParRepacker\ParRepacker.csproj" />
<ProjectReference Include="..\Utils\Utils.csproj" />
</ItemGroup>
</Project>
I am used to the automation of Rider, and I am used to some small groups (for a very single game development, a small range of development), but now the sdk, visual studio, etc. will not be used
用cmd: dotnet --info
hint:
Solution
. Net framework installed,
.Net Core installed
Visual Studio c++ is also installed
windows sdk is also installed
There is a problem with MSBuildSdksPath
But, but, using visual studio is a life-and-death prompt that the project cannot be opened
In the end, it was solved by installing Rider, and the project can be opened directly (the development environment is exactly the same)
(It's not selling ads, it's just installing a rider, just register for a trial and it will be solved)
As for why visual studio is so frustrated, its own SDK can't recognize it?
Why is Rider so powerful?
Why are there so many fetters between these two companies?
I won’t talk about it (it’s not a good thing for a family to dominate, and to think that you are the boss)