1

I've got many versions of .NET Core SDK installed in my Windows 10 PC. I'm wondering if older versions can be uninstalled:

List of installed softwares

I'm not sure how .NET Core versioning works and if I need specific version in my PC.

  • .NET Core versions are backwards compatible. – Ramhound Nov 6 '18 at 17:02
1

The answer by Damian Edwards, PM Manager for .NET app frameworks (ASP.NET, CoreFX, EF, etc.) at Microsoft is quote:

Delete them all, then nuke the dotnet folder in program files, then install the latest version.

You may uninstall all old versions one by one, or use a PowerShell Script to delete. The following script is from the article Scripts to remove old .NET Core SDKs:

$app = Get-WmiObject -Class Win32_Product | Where-Object { 
    $_.Name -match "Microsoft .NET Core SDK"
}

Write-Host $app.Name 
Write-Host $app.IdentifyingNumber
pushd $env:SYSTEMROOT\System32

$app.identifyingnumber |% { Start-Process msiexec -wait -ArgumentList "/x $_" }

popd

You might do the same with the Microsoft .NET Framework, if you are going to delete the dotnet folder.

This script requires you to hit YES because of elevation, but you may run it from an elevated PowerShell shell.

Take backups before starting.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.