The OutputPath property is not set for project

前端 未结 15 1491
无人及你
无人及你 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 00:49

    I have figured out how it works (without changing sln/csproj properties in VS2013/2015).

    1. if you want to build .sln file:
      1. /p:ConfigurationPlatforms=Release /p:Platform="Any CPU"
    2. if you want to build .csproj file:
      1. /p:Configuration=Release /p:Platform=AnyCPU
        1. notice the "Any CPU" vs AnyCPU
    3. check the code analysis, fxcop, test coverage(NCover) targets, as well as the MSBUILD should be located properly. In my case its:
      1. C:\Windows\Microsoft.NET\Framework64\v4.0.30319 but it can be different as you can see microsoft has given 6 cmd options to build code base::AMD (with cross plt, x86 & x64 options) and Windows(cross, x86, x64) and that also when code development happened with default JIT (it can be PreJIT ngen.exe, econoJIT)

    I think more than this troubleshooting can be handle using power shell + msbuild. May be helpful for someone ...

提交回复
热议问题