`msbuild` command not found, but `msbuild.exe` works fine

前端 未结 2 1993
野的像风
野的像风 2020-12-19 06:59

I run MSys/Bash as distributed in Git for Windows. I added the folder C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319 to my path, so I could run msbuild

2条回答
  •  甜味超标
    2020-12-19 07:28

    It's a bug in MSys where the same name is shared by a folder and a file (minus the extension). In this case:

    • File C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
    • Folder C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild

    You'll have to workaround by writing msbuild.exe

提交回复
热议问题