DotNet SDK Found, DotNet.DLL not.... but its there
See original GitHub issueSteps 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:
- Created 7 years ago
- Reactions:2
- Comments:16
Top GitHub Comments
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.
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.