The OutputPath property is not set for project

前端 未结 15 1162
无人及你
无人及你 2021-02-01 00:05

Building my Jenkins/MSBuild solution gives me this error

c:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319\\Microsoft.Common.targets(483,9): error : 
The OutputP         


        
15条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-01 01:01

    I was using MSBuild to build multiple .sln files, and had added a new step to build a .csproj file as well, when I encountered this error.

    @Saurabh's answer highlighted the root of the problem. However, when fixing it, adding /p:Platform=AnyCPU to the MSBuild Arguments section didn't fix it. I actually needed to update the Platform value on the build step.

    All other build steps were using the $(BuildPlatform) variable value (which happened to be "any cpu", with a space in it).

    (Had I been building multiple .csproj files, I probably would have created a second variable for the AnyCPU platform.)

提交回复
热议问题