MSBUILD : error MSB1008: Only one project can be specified

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

    It turns out the trailing slash in the PublishDir property is escaping the end quote. Escaping the trailing slash solved my problem.

    /p:PublishDir="\\BSIIS3\c$\DATA\WEBSITES\benesys.net\benesys.net\TotalEducationTest\\"
    

    This way we can use quotes for paths that have whitespace in properties that MSBuild requires the trailing slash.

    I know this is an old post, but I feel like I needed to share this with someone :-)

提交回复
热议问题