MSBUILD : error MSB1008: Only one project can be specified

前端 未结 18 1177
眼角桃花
眼角桃花 2021-01-30 09:39

Why am I getting the following Build error?

C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\msbuild.exe C:\\Code\\EduBenesysNET\\EduBenesysNET\\EduBenesysNET.vbproj /t:pu         


        
18条回答
  •  感动是毒
    2021-01-30 10:16

    For me adding the path to the solution file in double quotes solved the issue. One of the folders in the path had a blank space in the name and this caused it to consider 2 solution files instead of one. I executed in the following was and it worked.

    MSBuild.exe "C:\Folder Name With Space\Project\project.sln"

提交回复
热议问题