I am trying to build my solution with MSBuild command line on my build server. However, MSBuild does not copy any dlls to the bin folder and therefore subsequent targets fail.
My solution consists of several projects where only one project should be packaged. This project references other projects in the same solution that should be built before.
All references are set to <Private>true</Private>
in the project file.
Here is my MSBuild command:
Msbuild solution.sln /m /p:BuildInParallel=true /p:VersionNumber=1.2.3.4
"/t:Rebuild" /p:Configuration=Release /p:WebProjectOutputDir=publish\
"/p:GitVersion=abcdef (abcdef)" /p:OutDir=publish\bin\ /p:RunOctoPack=true
When I build the project in Visual Studio (2012 or 2013) the bin folder gets created and all required dlls are copied to the bin folder. After Visual Studio copied the dlls to the bin folder, the MSBuild command works until I changed any of the referenced dlls.
I read some posts about indirect references not being copied, but for me, even the direct ones are not being copied.
I also tried invoking targets like ResolveReferences
, but always get the error that the target ResolveReferences does not exist in the project solution.sln
.
Does anyone know what I'm doing wrong? Thanks for the help.