The OutputPath property is not set for this project

前端 未结 20 1651
無奈伤痛
無奈伤痛 2020-11-30 23:20

When I try to compile my project from x86 debug mode in Visual Studio 2008. I am getting this error. When I looked at the property group of the project that complained, I se

20条回答
  •  长情又很酷
    2020-11-30 23:54

    had this problem as output from Azure DevOps after setting to build the .csproj instead of the .sln in the Build Pipeline.

    The solution for me: Edit .csproj of the affected project, then copy your whole

    
    

    Node, paste it, and then change the first line as followed:

        
    

    The reason is, that in my case the error said

    Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='release'  Platform='any cpu'.  
    

    Why Azure wants to use "any cpu" instead of the default "AnyCpu" is a mystery for me, but this hack works.

提交回复
热议问题