MSBUILD : error MSB1008: Only one project can be specified

前端 未结 18 772
眼角桃花
眼角桃花 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:38

    If you are using Any CPU you may need to put it in single quotes.

    Certainly when running in a Dockerfile, I had to use single quotes:

    # Fails. Gives: MSBUILD : error MSB1008: Only one project can be specified.
    RUN msbuild ConsoleAppFw451.sln /p:Configuration=Debug /p:Platform="Any CPU" 
    
    # Passes. Gives: Successfully built 40163c3e0121
    RUN msbuild ConsoleAppFw451.sln /p:Configuration=Debug /p:Platform='Any CPU' 
    

提交回复
热议问题