I've recently added some shared projects to my existing Visual Studio solution and now the build process on our TFS build server fails.
Our build server was able to build the previous version of the solution and is again after the rollback. My shared projects are referenced like that in the .csproj files. (Created via Visual Studio)
<Import Project="..\xxx\yyy.projitems" Label="Shared" />
The build works fine with Visual Studio and the command line, but on the TFS build server it fails with this error:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets (187): "DestinationFiles" refers to 1 item(s), and "SourceFiles" refers to 2 item(s). They must have the same number of items.
When executing the msbuild command via cmd, everything works fine. Also on the same maschine as the build server is running on. On the command line it looks like that:
"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" /nologo "xxx.sln" /m:1 /p:Configuration="Debug" /p:Platform="Any CPU"
Any ideas why this is not working?