3
votes

I have .NET .sln solution that contains about 40 projects, that I build using MSBuild in teamcity ( configuration in attachment ). And every time it completely rebuilds all projects, that solution contains. When I build it using my Visual Studio - projects isn't rebuilt completely, just which were changed. And I get message like: ========== Build: 1 succeeded, 0 failed, 13 up-to-date, 0 skipped ==========

I tried solution here but it didn't work. Maybe I should do something in addition to that? How to configure teamcity to skip building projects in sln that up to date.

2

2 Answers

0
votes

Are you able to run your build incrementally via msbuild.exe on the build agent machine without TeamCity envolved? If it works and it doesn't work in TeamCity please submit an issue withh all the details to https://youtrack.jetbrains.com/issues/TW.

0
votes

I have added another answer to the issue you referenced, found here. Give this a shot, it is working for me.

P.S., you could skip the VCS step and instead store the needful file... anywhere... really. But the way I've written it when we upgrade our .NET Framework target I can simply check in the new version of the file and everything should continue to work.