Visual Studio build successful, MSBuild fails

后端 未结 7 2437
有刺的猬
有刺的猬 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:24

    I assume there's a difference in how the project is built, because Visual Studio does not run MSBuild, as it rather hosts the build engine itself. This was answered here.

    However, I've had similar problem.

    In my case the project referenced an external library, which was placed in the project's child directory, unluckily named "packages".

    After running MSBuild the folder's content was deleted, supposedly to be downloaded again by Nuget.

    The obvious solution was to rename the folder and it worked.

提交回复
热议问题