.NET not found by multiple programs

Sytze Reitsma 1 Reputation point
2023-01-03T19:40:45.98+00:00

I've had this VScode error for a while now:
"The .NET Core SDK cannot be located: A valid dotnet installation could not be found. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.",
and now I'm trying to play teardown multiplayer, having the same problem.
"You must install or update .NET to run this application.
Framework: 'Microsoft.WindowsDesktop.App', version: '7.0.0' (x64)"

The problem is, I've installed both. When opening my install, I can only repair or uninstall my .NET, not download it. I've tried to dix this multiple times, to no sucess. Can't find anything online either. Is anyone else having this problem?

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
957 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 38,026 Reputation points
    2023-01-03T21:11:04.55+00:00

    Have you really installed it though? .NET comes in 2 versions: x86 and x64. You need to install both versions if you want to run apps that could be either. Go to command prompt and type dotnet --list-runtimes. Do you see Microsoft.WindowsDesktop.App 6.x in the list. If you don't then it isn't installed. If it is installed then what path does it show?

    Then run dotnet --info and show us what was printed. You should have 2 versions defined.

    In your specific case it is looking for .NET 7 so you need to install this new framework if you don't yet have it.

    No comments

  2. Maira Wenzel 1 Reputation point Microsoft Employee
    2023-01-10T22:57:06.83+00:00

    This might be an issue with PATH.

    Check the output of the where.exe dotnet command and if your system is x64 and the x86 path returns first, please follow the steps at https://github.com/dotnet/core/issues/5962#issuecomment-780084535 to fix the issue.

    I hope this helps!

    No comments