简体   繁体   English

dotnet 命令在 powershell 中不起作用

[英]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.当我在 Windows 10 中从 Powershell 键入dotnet时,系统会提示我 window 选择一个应用程序来打开“那个”文件。 (How do you want to open this file?). (你想如何打开这个文件?)。 From cmd it works fine, but not from Powershell (or even from VSCode Terminal. Any ideas?从 cmd 可以正常工作,但不能从 Powershell (甚至来自 VSCode 终端。有什么想法吗?

应用程序选择对话框

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.在 powershell 中运行此命令Get-Command dotnet |Format-List时,我意识到在我的 C:\WINDOWS\system32\ 文件夹中有一个名为dotnet的空文件。 I don't know how that got there honestly...老实说,我不知道它是如何到达那里的...

Before the fix修复前

获取命令 dotnet

After the fix修复后固定的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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