The SDK 'Microsoft.NET.Sdk' specified could not be found.
See original GitHub issueI am trying to add a project reference to a solution and this error message gets throw.
This is the code that throws the error.
sln.Result.Env.AddOrGet(new Project(XmlReader.Create(new StreamReader($@".\Solutions\{Namespace}\{Namespace}.Server\{Namespace}.Server.csproj"))));
I have net core sdk installed but couldn’t figure out why this error occurs.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
The SDK 'Microsoft.NET.Sdk' specified could not be found. ...
The SDK 'Microsoft.NET.Sdk' specified could not be found. in Visual Studio Community 2022 version 17.5 · Right-click your project > Unload ...
Read more >The SDK 'Microsoft.NET.Sdk' specified could not be found - ...
The compiler can not find the SDK. You need it installed togeher with the Compiler to make a build. Ideally you picked the...
Read more >MSB4236: The SDK 'name' specified could not be found.
This error occurs when an MSBuild project SDK couldn't be loaded. An MSBuild project SDK is a packaged set of imported files that...
Read more >MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not ...
My system environment variables contain an entry for MSBuildSDKsPath , which points to C:\Program Files\dotnet\sdk . It looks harmless. In C:\ ...
Read more >MSB4236 The SDK Microsoft.NET.Sdk specified could not ...
The error was error MSB4236 The SDK Microsoft.NET.Sdk specified could not be found and is because the project now includes dotnetcore ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see. XDocument-like solution could be really a good option for your case. The other cases with correct evaluated nodes should be processed through Sdk-resolvers (abstract layer in build.framework part). But means only modern project files and not .sln features where you can easily add something through related
ProjectItem
etc.My hope for v3 that probably will fix the mentioned situation. Time will tell, follow the news.
On 22.03.2020 2:01, Anthony G. Rivera Cosme wrote:
Don’t worry I just needed to add some items to a static project file.