Why does TeamCity miss a reference and fails compilation?

一曲冷凌霜 提交于 2019-12-05 17:37:59

Check the build log for any MSBuild produced errors and warnings.

Check you have defined a reference to the project, but not to the output of the project.

Check the compilation of ClassLibrary1 succeedes.

Yes, .sln file should contain the required information.

Could you please try running the build from console using msbuild.exe. Does it work? msbuild.exe mySolution.sln /t:Rebuild

Try settings target Rebuild

What user account is used to run build agent windows service?

The problem was that the .sln file was repeated on the repository, on two different locations, and I configured the TeamCity to build the wrong one...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!