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.

Incomplete .NET SDK 5.0.301 installations

See original GitHub issue

My System

  • Windows 10 Pro Build 19043.1081
  • Processor: Intel i7-4810MQ

This started when I uninstalled Visual Studio 2019 v16.10 and its .NET workloads, a week ago.

The .NET SDK 5.0.204 somehow keeps installing itself. I have removed it regularly for 3days, until I found that uninstalling it from the installer doesn’t remove all it’s files and is still accessible through dotnet cmd in the terminal. So, I manually removed C:/Program Files/dotnet and a .NET installer which probably came through Windows update. This stopped it.

Yesterday, I tried installing .NET SDK 5.0.301 through the installer, at a different location by specifying DOTNETHOME env variables. But, It installs itself in the Default C:/Program Files directory and not accessible through dotnet cmd. So, I reinstalled it multiple times for the sake of installing it at a different location and also normally. Still it installs at the same default path and dotnet cmd won’t work because the installer is only copying toolset, targeting pack and some other, but not Runtime and SDK files.

So, The 2 issues are:

  • DOTNETHOME environment variables doesn’t seem to work
  • There’s something that prevents 5.0.301 installer from copying all the files

Repairing through installer fixes the 2nd problem as it then copies all the sdk files. and .NET SDK 6preview5 is installing fine.

Just reporting it, In case anyone who has similar issue might find this.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
joeloffcommented, Jul 16, 2021

Thanks, I’ll take a look. Hopefully we’ll have some clues

0reactions
U-C-Scommented, Jul 19, 2021
  • DOTNETHOME environment variables doesn’t seem to work

Anything about this? I would like to install the SDK at a different location

Read more comments on GitHub >

github_iconTop Results From Across the Web

I cannot uninstall old .Net Core SDKs · Issue #4878
Issue Title I currently have 4 .Net Core SDKs, 3.1.100, 3.1.101, 3.1.201 and 3.1.301. I have uninstalled the 3 old .Net Core SDKs...
Read more >
Download .NET 5.0 (Linux, macOS, and Windows)
NET 5.0 downloads for Linux, macOS, and Windows. .NET is a free, ... Build apps - SDK ... NET Runtime; you don't need...
Read more >
Microsoft Visual Studio 2019: The project file cannot be ...
Unable to locate the .NET SDK. Check that it is installed and that the version specified in global.json (if any) matches the installed...
Read more >
The Current .NET SDK does not support targeting . ...
How to work around a common .NET Core compilation targeting error using .NET Core 3 SDK and .NET Core 3 projects with Visual...
Read more >
Visual Studio 2019 unable to locate .Net Core SDK
Detailed Information: Unable to locate the .NET Core SDK. Check that it is installed and that the version specified in global.json (if any) ......
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