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

Couldn’t get the (latest) C# extension to work correctly on one of my machines. The project is a .NET Core 3.0 dotnet new console project with no changes.

Here are the logs: https://gist.github.com/richlander/9931ebb3c3570615439fe0ccf3ae6657

The logs demonstrate the machine env, launch code and then show the O# logs that I saw, rinse and repeat. I tried various suggestions I found @ https://github.com/Microsoft/msbuild/issues/2532

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:37 (6 by maintainers)

github_iconTop GitHub Comments

10reactions
zeroskyxcommented, Apr 5, 2019

Don’t ask me where I found this, but the following command has fixed the issue for me (probably worth a try):

dotnet nuget locals all -c

I also have added this to my omnisharp.json:

"MsBuild":
{
	"UseLegacySdkResolver": true
}

Gold luck

7reactions
alvaromuircommented, May 29, 2021

I found this to be a problem when I installed dotnet via HomeBrew on mac. Uninstalled that, then used the normal installer from https://aka.ms/dotnet-download

Read more comments on GitHub >

github_iconTop Results From Across the Web

MSBUILD throws error: The SDK 'Microsoft.NET.Sdk' specified ...
Sdk ' specified could not be found. The version of msbuild is the latest from microsoft visual studio 2017 tools. I'm using Windows...
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 be ...
PS: I found out about this because when I did a dotnet restore and the error log became: C:\Program Files\dotnet\sdk\6.0. 301\Current\ ...
Read more >
MSB4236 The SDK Microsoft.NET.Sdk specified could not be ...
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 >
The SDK 'Microsoft.NET.Sdk' specified could not be found
Pack drwxr-xr-x 5 root root 4096 Απρ 5 19:48 Xamarin.IoT.Sdk. Go detected. Rider is not able find "Microsoft.NET.Sdk" when using a simple project...
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