I am having some problems with MSBUILD that are used on the command line compared to CruiseControl.NET, because the results are different, and I do not understand why this would be.
When you call MSBUILD, a project is created on the command line on my local machine, and the output directory contains a bunch of DLLs and PDB files and a subdirectory called _PublishedWebsites, which contains two web applications in my solution (ASP.NET MVC application and WCF web service).
So far so good.
This folder is not created on the CI server.
This is the same msbuild project file that is used for both, so I don't see what the difference is. A few hours later in Google I completely lost.
I assume that there is something in my local machine in an environment that sets a default value somewhere that is missing from the CI server.
Is there any specific parameter that I have to set somewhere in the explanation, says MSBUILD to create a folder containing published web applications?
CCNET.config UPDATE (partially)
<cruisecontrol> <project name="My-Project Nightly Build"> <workingDirectory>C:\CruiseControl\My-Project-Nightly</workingDirectory> <artifactDirectory>C:\CruiseControlArtifacts\My-Project-Nightly</artifactDirectory> <sourcecontrol type="multi"> <sourceControls> <vsts> <executable>C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe</executable> <project>$/Brand Web/</project> <autoGetSource>true</autoGetSource> <applyLabel>true</applyLabel> <cleanCopy>true</cleanCopy> <deleteWorkspace>true</deleteWorkspace> <server>http://company-tfs:8080/tfs/Projects</server> <workingDirectory>C:\CruiseControl\My-Project-Nightly\Brand Web\</workingDirectory> <workspace>Brand-Nightly</workspace> </vsts> <vsts> <executable>C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe</executable> <project>$/Brand/Main</project> <autoGetSource>true</autoGetSource> <applyLabel>true</applyLabel> <cleanCopy>false</cleanCopy> <server>http://company-tfs:8080/tfs/Projects</server> <workingDirectory>C:\CruiseControl\My-Project-Nightly\Brand\Main</workingDirectory> <workspace>Brand-Nightly</workspace> </vsts> <vsts> <executable>C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe</executable> <project>$/Generic</project> <autoGetSource>true</autoGetSource> <applyLabel>true</applyLabel> <cleanCopy>false</cleanCopy> <server>http://company-tfs:8080/tfs/Projects</server> <workingDirectory>C:\CruiseControl\My-Project-Nightly\Generic</workingDirectory> <workspace>Brand-Nightly</workspace> </vsts> <vsts> <project>$/ComponentA</project> <executable>C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe</executable> <autoGetSource>true</autoGetSource> <applyLabel>true</applyLabel> <cleanCopy>false</cleanCopy> <server>http://company-tfs:8080/tfs/Projects</server> <workingDirectory>C:\CruiseControl\My-Project-Nightly\ComponentA</workingDirectory> <workspace>Brand-Nightly</workspace> </vsts> <vsts> <project>$/Third Party Libraries</project> <executable>C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe</executable> <autoGetSource>true</autoGetSource> <applyLabel>true</applyLabel> <cleanCopy>false</cleanCopy> <server>http://company-tfs:8080/tfs/Projects</server> <workingDirectory>C:\CruiseControl\My-Project-Nightly\Third Party Libraries</workingDirectory> <workspace>Brand-Nightly</workspace> </vsts> </sourceControls> </sourcecontrol> <labeller type="defaultlabeller"> <prefix>Brand-</prefix> </labeller> <triggers> <scheduleTrigger time="02:15" buildCondition="ForceBuild" name="BrandNightlyBuild"> </scheduleTrigger> </triggers> <tasks> <msbuild> <executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable> <projectFile>C:\CruiseControl\My-Project-Nightly\Brand Web\Main\Build\Nightly.build</projectFile> <buildArgs>/p:Configuration=Debug /p:Platform=x86 /p:TargetFramework=4.0 /p:OutputPath=C:\CruiseControl\My-Project-Nightly\output\</buildArgs> <timeout >360000</timeout> </msbuild> </tasks> </project> </cruisecontrol>
source share