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.
Any pointers on what I am doing wrong and how to resolve it?
Added part of csproj for PowerYaml stuff:
<Content Include="Helpers\PowerYaml\Libs\YamlDotNet.Configuration.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Helpers\PowerYaml\Libs\YamlDotNet.Converters.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Helpers\PowerYaml\Libs\YamlDotNet.Core.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Helpers\PowerYaml\Libs\YamlDotNet.RepresentationModel.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>