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.

DotNet SDK Found, DotNet.DLL not.... but its there

See original GitHub issue

Steps to reproduce

Installed SDK Preview

Expected behavior

No Error

Actual behavior

Severity Code Description Project File Line Suppression State Error The project is configured to use .NET Core SDK version 1.0.0-* which is not installed or cannot be found under the path C:\Program Files (x86)\dotnet. These components are required to build and run this project. PcasoftMVC C:\Users\Morgan\Documents\Projects\web\PcasoftMVC\src\PcasoftMVC\GETSDKTOOLINGINFO 1

from the CLI the result is this… C:\Users\Morgan\Documents\Projects\web\PcasoftMVC\src\PcasoftMVC>dotnet restore Found dotnet SDK, but did not find dotnet.dll at [C:\Program Files (x86)\dotnet\sdk\1.0.0-*\dotnet.dll]

Environment data

dotnet --info output: C:\Users\Morgan\Documents\Projects\web>dotnet --info output .NET Command Line Tools (1.0.0-preview1-002702)

Product Information: Version: 1.0.0-preview1-002702 Commit Sha: 6cde21225e

Runtime Environment: OS Name: Windows OS Version: 10.0.10586 OS Platform: Windows RID: win10-x86

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:16

github_iconTop GitHub Comments

44reactions
rasoducommented, Jul 19, 2018

I got these error after I uninstalled old version of SDK. For me removing SDK folder from program files solved it.

The folder in ‘C:\Program Files\dotnet\sdk’ for the particular SDK version didn’t get deleted when I uninstalled SDK. I think I saw error ‘file in use’ when I was uninstalling.

It works fine after deleting the folder. For example, I deleted folder ‘C:\Program Files\dotnet\sdk\2.1.300’. This was folder for RC release. I think ‘dotnet’ cli looks for dotnet.dll in SDK folder.

9reactions
viktorpeacockcommented, Dec 13, 2018

This is still a problem. Removing 2.200-preview via Programs/Features does not remove the folder in ProgramFiles/dotnet/sdk. I had to remove the folder manually for this to work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Found .NET SDK, but did not find dotnet.dll
I recently installed Visual Studio 2022 preview. Today I was in a workshop and there was some feature that didn't work, and it...
Read more >
DotNet SDK Found, DotNet.DLL not.... but its there #6180
I think 'dotnet' cli looks for dotnet.dll in SDK folder. 39
Read more >
NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >
Unable to locate the .NET SDK: The Reasons - Hamid Mosalla
Navigate to C:\Program Files\dotnet\sdk and see if you can find ... If you can't find any folder there that means the sdk is...
Read more >
Support for the Upcoming .NET SDK 6.0
NET SDK, but did not find dotnet.dll at" and found a fix at https://github.com/dotnet/sdk/issues/6180. As you may know, it's a known problem where...
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