Configuring Projects Issue with TFS and CCNET

Apr 4, 2008 at 2:55 PM
Can someone show me an example of how to setup my ccnet.config file under the following scenario?

I'm getting so confused with so many "workingDirectory" nodes.

- I use TFS 2005, with VS 2008.
- I have a .sln file which contains various projects that are mapped (using an existing Workspace) to various places (for example: C:\inetpub\wwwroot\MyWebProject, and C:\Projects\MyOtherProject)
- TFS contains these projects at a root project level (ie , $/MyProject contains $/MyProject/MyWebProject and $/MyProject//MyOtherProject)

I'm failing to understand how CCNET gets the source code because it seems to just get the source code in the default WorkingDirectory and doesn't pay attention to any of my mappings.

Here's how it's set up....


<cruisecontrol>
<project name="01 MyProject continuous">
<triggers>
<intervalTrigger />
</triggers>
<sourcecontrol type="vsts" autoGetSource="true">
<server>http://itsflnt4:8080</server>
<project>$/MyProject</project>
<workspace>MyWorkspaceName</workspace>
<deleteWorkspace>false</deleteWorkspace>
</sourcecontrol>
<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe</executable>
<projectFile>MySolution.sln</projectFile>
<buildArgs>/noconsolelogger /p:Configuration=Release /v:diag</buildArgs>
<targets>Build</targets>
<timeout>900</timeout>
<logger>c:\Program Files\CruiseControl.NET\server\Rodemeyer.MsBuildToCCNet.dll</logger>
</msbuild>
</tasks>
</project>
</cruisecontrol>