question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The SDK 'Microsoft.NET.Sdk' specified could not be found.

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
3Fcommented, Mar 22, 2020

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.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/3F/MvsSln/issues/24#issuecomment-602116433, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYYT7LIGDTNT4QHA24GTE3RIVBK7ANCNFSM4LO6N5VQ.

0reactions
arivera12commented, Mar 21, 2020

Don’t worry I just needed to add some items to a static project file.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found