Whenever i run dotnet command say for example dotnet --list-runtime
it gives me below error
A fatal error occurred. The folder [C:\Program Files\dotnet\host\fxr] does not exist
Please note .net runtime is already installed on my machine
Asked
Active
Viewed 340 times
0

Md Yunus
- 1
- 5
-
If that folder doesn't exist, the runtime is apparently not properly installed. Try reinstalling it. – PMF Jan 20 '22 at 05:53
1 Answers
0
You might need to add dotnet to system path.
- Start the System Control Panel applet (Start - Settings - Control Panel - System).
- Select the Advanced tab.
- Click the Environment Variables button.
- Under System Variables, select Path, then click Edit.
- Add C:\Program Files\dotnet to path.
- Save and close all CMD windows. Should work now.
Give that a go.

mathis1337
- 1,426
- 8
- 13