Visual Studio build successful, MSBuild fails

后端 未结 7 2377
有刺的猬
有刺的猬 2021-02-19 02:08

I am trying to clean and rebuild a solution file with multiple projects from the command line using MSBUILD. For some reason my build fails (about 10% of the built projects fail

7条回答
  •  有刺的猬
    2021-02-19 02:25

    In my case I had one PCL referencing another PCL with different targets. Visual Studio showed me a warning in the references list of the first library, but compiled the solution, whereas MSBUILD refused to compile. I fixed the problem by retargeting the PCL. Hope this helps somebody.

提交回复
热议问题