sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Uninstalling RC1 leave sdk directory causing Dotnet to be in non-working state

Open danwalmsley opened this issue 8 years ago • 9 comments

Steps to reproduce

  • install dotnet sdk RC1 on Windows.
  • run some dotnet commands like dotnet build so that it starts the dotnet hosts.
  • run the uninstaller (you will need to select the installer to require a reboot because it fails to close the dotnet hosts.)
  • once done you can try dotnet commands but will fail with:

Expected behavior

Should just work.

Actual behavior

Found dotnet SDK, but did not find dotnet.dll at [C:\Program Files\dotnet\sdk\2.1.300-rc1-008673\dotnet.dll]

it can then be fixed by deleting the directory.

Environment data

dotnet --info output:

n/a

The uninstaller needs to be able to shutdown the hosts before running.

danwalmsley avatar May 08 '18 14:05 danwalmsley

I just encountered this (tried 2.1 RC, uninstalled it, installed 2.0 again) and had to reboot then delete the 2.1.300-rc-1 folder because I couldn't launch any command with dotnet (same error message)

MayakoAelys avatar May 30 '18 11:05 MayakoAelys

issue still occurs, i uninstalled 2.1.500-preview-009297 but the directory was left empty, manual deletion fixed it

mjjames avatar Sep 12 '18 11:09 mjjames

Same for me, I tried to reinstall the last Stable Sdk, the problem is still there.

ranouf avatar Oct 09 '18 18:10 ranouf

Same issue for 2.1.600-preview-009426. @mjjames suggestion fixed the issue for me.

rootkow avatar Dec 13 '18 18:12 rootkow

Issue reoccurs on .NET 3.0 preview5; everything was removed except the folder itself.

jhudsoncedaron avatar May 10 '19 22:05 jhudsoncedaron

@mjjames suggestion worked !

hamidnoahdi avatar May 10 '20 09:05 hamidnoahdi

Issue also occurs with .NET 5 preview 4. Work around is the same: delete the empty folder manually.

lafe avatar May 30 '20 14:05 lafe

The same for released .NET 5

vova-lantsov-dev avatar Nov 17 '20 08:11 vova-lantsov-dev

Due to lack of recent activity, this issue has been labeled as 'Stale'. It will be closed if no further activity occurs within 30 more days. Any new comment will remove the label.

github-actions[bot] avatar Nov 18 '25 16:11 github-actions[bot]