The OutputPath property is not set for project

前端 未结 15 1161
无人及你
无人及你 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:05

    This error is misleading and can be caused by a different issue. Check the entire message:

    The OutputPath property is not set for project 'myproject'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='myconfig'  Platform='AnyCPU'.  This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform.
    

    My build configuration was missing this node in the csproj:

    AnyCPU
    

    Despite saying AnyCPU was the selected Platform in the dropdown, the actual xml was not there. Adding it fixed the mismatch between the project and the other project it was referencing.

提交回复
热议问题