简体   繁体   中英

dotnet command doesn't work from powershell

When I type dotnet from Powershell in Windows 10 I am prompted with a window to choose an application to open "that" file. (How do you want to open this file?). From cmd it works fine, but not from Powershell (or even from VSCode Terminal. Any ideas?

应用程序选择对话框

When running this command Get-Command dotnet |Format-List in powershell I realised there was an empty file called dotnet in my C:\WINDOWS\system32\ folder. I don't know how that got there honestly...

Before the fix

获取命令 dotnet

After the fix固定的

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM