.NET: Microsoft Technologies based on the .NET software framework. Runtime: An environment required to run apps that aren't compiled to machine language.
Hello @Shao, Seth ,
Because where.exe dotnet only shows C:\Program Files\dotnet\dotnet.exe, the likely cause is that the system-wide .NET 10 install is damaged or the required native dependency is missing.
I suggest trying this in order:
- Run the same .NET 10 installer again and choose Repair, or run it with the documented
/repairoption. Microsoft documents that the Windows installer supports/repairand/uninstallfor an existing SDK install: Install .NET on Windows. - If uninstall from Apps/Visual Studio still does not work, use the Microsoft .NET Uninstall Tool to see whether that SDK can be removed: dotnet-core-uninstall list and uninstall tool overview. If it appears in the list, you can remove it with dotnet-core-uninstall remove.
- Reinstall the x64 .NET 10 SDK from the official Windows installer or WinGet package
Microsoft.DotNet.SDK.10, as described in Install .NET on Windows. - If the machine is older Windows or missing prerequisites, install the Microsoft Visual C++ Redistributable, because the .NET Windows troubleshooting guidance calls that out for
hostfxr.dll-related failures: Troubleshooting on Windows.
If it still fails after repair or reinstall, please share:
- your Windows version
- whether this is an Arm64 machine
- the result of
dotnet --info - whether the .NET 10 installer Repair completed successfully
I hope this helps. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guidance or provide feedback.
Thank you.