Closed mvermef closed 4 years ago
I am getting the same error...
Check your .NET component very carefully, I found my .NET CLI component at the very end of .NET framework component, remove it and remove the RC2 component and re-install the RC2 component, when running HelloWorld sample app, delete the old "hwapp" if you have it, create a new one and follow the steps on MS RC2 download page will work.
Global.json..... Version needs to match, sdk installed
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.
The sdk dll file may be corrupted or lost you can try this on debian to reinstall dotnet core sdk sudo apt-get install dotnet-sdk-2.1 or for latest version see https://www.microsoft.com/net/download/linux-package-manager/debian8/sdk-current
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.
FYI - same thing after uninstalling preview on 3.0.100
- I had to manually remove preview version folders from sdk
folder.
I had the same problem after uninstalling SDK 2.2.401. Removing the empty folder made it work again.
Same problem for removing sdk version 3.0.100
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.
Yes after removing the folder of uninstalled version, solved the problem. Thanks
I was getting same error and was unable to delete the folder as it kept saying its being used. Killing dotnet process from Task Manager did not help. But the same from powershell helped free it and I could delete it.
gps -Name dotnet
spps #id_of_dotnet process
ri 'C:\Program Files\dotnet\sdk\5.0.100-rc.1.20452.10'
I was getting same error and was unable to delete the folder as it kept saying its being used.
Same here. Uninstalled 5.0 rc, and folder is left there and I can't delete it. And no dotnet
process is running, so it's held by something else. 😠
Since the release of netcore 3.0 I only used release versions of VS 2019 and now that 5.0 SDK introduces breaking changes for projects targeting 3.1.x I wanted to apply a global.json file but only got DotNet.DLL not found.
No wonder none of 3.1.400, 3.1.402, 3.1.403 work:
DU v1.62 - Directory disk usage reporter
217.826 C:\program files\dotnet\sdk\2.1.802
169.310 C:\program files\dotnet\sdk\3.0.101
168.510 C:\program files\dotnet\sdk\3.1.201
0 C:\program files\dotnet\sdk\3.1.400
0 C:\program files\dotnet\sdk\3.1.402
0 C:\program files\dotnet\sdk\3.1.403
211.746 C:\program files\dotnet\sdk\5.0.100
209.692 C:\program files\dotnet\sdk\5.0.101
Since the release of netcore 3.0 I only used release versions of VS 2019 and applied updates every 2 weeks or so.
.NET SDK (gemäß "global.json"):
Version: 5.0.101
Commit: d05174dc5a
Laufzeitumgebung:
OS Name: Windows
OS Version: 10.0.19042
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.101\
Host (useful for support):
Version: 5.0.1
Commit: b02e13abab
.NET SDKs installed:
2.1.802 [C:\Program Files\dotnet\sdk]
3.0.101 [C:\Program Files\dotnet\sdk]
3.1.201 [C:\Program Files\dotnet\sdk]
3.1.400 [C:\Program Files\dotnet\sdk]
3.1.402 [C:\Program Files\dotnet\sdk]
3.1.403 [C:\Program Files\dotnet\sdk]
5.0.100 [C:\Program Files\dotnet\sdk]
5.0.101 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
18.926 C:\program files\dotnet\shared\Microsoft.AspNetCore.All\2.1.13
18.924 C:\program files\dotnet\shared\Microsoft.AspNetCore.All\2.1.23
37.850 C:\program files\dotnet\shared\Microsoft.AspNetCore.All
53.051 C:\program files\dotnet\shared\Microsoft.AspNetCore.App\2.1.13
53.069 C:\program files\dotnet\shared\Microsoft.AspNetCore.App\2.1.23
19.097 C:\program files\dotnet\shared\Microsoft.AspNetCore.App\3.0.1
19.229 C:\program files\dotnet\shared\Microsoft.AspNetCore.App\3.1.10
19.189 C:\program files\dotnet\shared\Microsoft.AspNetCore.App\3.1.3
20.332 C:\program files\dotnet\shared\Microsoft.AspNetCore.App\5.0.0
20.369 C:\program files\dotnet\shared\Microsoft.AspNetCore.App\5.0.1
204.339 C:\program files\dotnet\shared\Microsoft.AspNetCore.App
66.460 C:\program files\dotnet\shared\Microsoft.NETCore.App\2.1.13
66.463 C:\program files\dotnet\shared\Microsoft.NETCore.App\2.1.23
66.676 C:\program files\dotnet\shared\Microsoft.NETCore.App\3.0.1
66.767 C:\program files\dotnet\shared\Microsoft.NETCore.App\3.1.10
66.754 C:\program files\dotnet\shared\Microsoft.NETCore.App\3.1.3
65.736 C:\program files\dotnet\shared\Microsoft.NETCore.App\5.0.0
65.745 C:\program files\dotnet\shared\Microsoft.NETCore.App\5.0.1
464.604 C:\program files\dotnet\shared\Microsoft.NETCore.App
85.406 C:\program files\dotnet\shared\Microsoft.WindowsDesktop.App\3.0.1
85.388 C:\program files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.10
85.427 C:\program files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.3
85.717 C:\program files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.0
85.722 C:\program files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.1
427.661 C:\program files\dotnet\shared\Microsoft.WindowsDesktop.App
Files: 4084
Directories: 109
Size: 1.161.696.663 bytes
I got this, in my case I had: C:\Program Files\dotnet\sdk\5.0.103 C:\Program Files\dotnet\sdk\5.0.201
The earlier was empty and removing it fixed it. This was giving errors both in the command line and in VS.
Happened since with each new NET SDK VisualStudio installs. Each time some empty Razor sub directory is present.
I have also two version of dotnet installed, one was empty, so i deleted the empty folder and it woked,
thanks
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