When I run MSBuild v4 locally, it builds nicely and copies all project and 3rd party DLLs into my website BIN folder.
However, when I run the exact same script on our Build server, it does not copy ANY of the referenced project DLLs or 3rd party DLLs into the website bin folder.
How do I get MSBuild to copy correctly on both environments? Is my .NET4 installation messed up?
The compilation in my MSBuild file is kicked off simply as follows:
<Target Name="Compile">
<MSBuild Projects="..\MySolution.com.sln" Properties="Configuration=Debug">
</MSBuild>
</Target>
This turned out to be a silly problem in the end. I'm guessing the VS2010 project files do not need to specifically have the "Private" attribute anymore, because mine were not there.
The problem was that I was using MSBuild v3.5 by accident, which was expecting these attributes.
As soon as I switched to using MSBuild v4 on our build server, the problem was solved.
Can the build server reach the source locations you specify?
If they are on you local disk it will not see them and if they are on a shared disk it might not have access to that share or have it through another path?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With