Why doesn't dotnet script
run in PowerShell after installation? I closed and reopened all PowerShell instances after installing.
PowerShell throws this error when I run dotnet script init
:
No executable found matching command "dotnet-script"
Edit:
dotnet script
does run incmd.exe
- The
dotnet
and.dotnet\tools
folders are present inPATH
I solved by:
$env:PATH
wasn't updating even after closing/reopening all PowerShell instances (source)