I am trying to set up a Build Server using CC.NET and TFS. In my current work place, the project files are located in different folders, not in a same root folder. We are using some legacy codes located in different locations which is shared on many projects. Solution file knows the exact location of all directories.
In source control section of ccnet.config file there’s only an option to specify a working directory to get the latest version. because of that if any code changes to the directories other then the working directory is not updated and build get failed every time.
is there any way to get latest version of all folders specified in solution file and build using msbuild?
<sourcecontrol type="vsts" autoGetSource="true" applyLabel="false">
<server>http://tfsserver/</server>
<username></username>
<password></password>
<domain></domain>
<workspace></workspace>
<project>projectlocation</project>
<workingDirectory>workingdirectory</workingDirectory>
</sourcecontrol>
if I am going in a wrong direction, please guide me the right way to do it. Thanks for the help.
There is no way to get CruiseControl.NET to read your solution files and only update working directories used in that solution. You’ll have to manage the list of working directories separately in CruiseControl.NET.
If you’re comfortable scripting, you could parse your solution files for the needed paths, and generate the proper, needed CCNet configuration file.