Teamcity MSBuild error:MSB3030
My project is building successfully on my local. But in teamcity I am getting the below error:
ResolveProjectReferences] MSBuild
[08:08:37][MSBuild] xxx.csproj: Build default targets
[08:08:38][xxx.csproj] _CopyOutOfDateSourceItemsToOutputDirectory
[08:08:38][_CopyOutOfDateSourceItemsToOutputDirectory] Copy
[08:08:38][Copy] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3683, 5): error MSB3030: Could not copy the file "D:\BuildAgent\work\9e680eb13f39fb7c\src\xxx\Helpers\PowerYaml\Libs\YamlDotNet.Converters.dll" because it was not found.
[08:08:38][xxx.csproj] Project xxx.csproj failed.
This error comes recently since last 1 month.Any pointers on what I am doing wrong and how to resolve it?
We are using TeamCity Enterprise 8.0.5 (build 27692).
Please sign in to leave a comment.
Hi Choudhury,
we have a few tips on troubleshooting this kind of issues here: https://confluence.jetbrains.com/display/TCD10/Common+Problems#CommonProblems-BuildworkslocallybutfailsormisbehavesinTeamCity
Working locally but failing on teamcity usually means a difference in environment, so you should check that the same libraries are available, same user permissions, etc. If it started one month ago, it would also be worth considering what changed between those points in time, to understand what is going on.
But please, consider that you are using a really old version. If you still can't manage to figure out the problem, I would recommend installing a test server of the last release and trying first to replicate it there.