Archive

Archive for November, 2010

XCode and TFS 2010 Part 1 – Setting up TFS 2010

November 25, 2010 13 comments

There have been many cases where i heard of users wanted to get XCode working with TFS 2010.

Obviously out of the box, XCode does not work with TFS 2010. However there is a way to make both of them talk 🙂

I’m outlining the steps below on how to configure both of them to communicate properly.

For those who are lazy to download from Codeplex, you can get the required files at http://cid-895931b65435bb3d.office.live.com/self.aspx/Public/SvnBridge%20-%20Files.zip

Step 1: Download SVNBridge from Codeplex

The first step is to configure TFS to have a SVN bridge. To do that, head down to http://svnbridge.codeplex.com/ and download the source files (DO NOT USE THE DOWNLOAD OPTION).

Once you downloaded all the source files, unzip them to a directory and run the build.bat

Once the build is complete, we have are ready to deploy the SVN website.

Step 2: Create a local user with read rights to the whole TFS

Login to your TFS server and create a local user e.g svnbridge

Step 3: Create folder for SVN bridge website

Now create a folder which will store the files for the SVN bridge (e.g c:\svnbridge)

Copy the files from SvnBridgeViaIis\bin to c:\svnbridge\bin

Copy SvnBridgeViaIis\web.config to c:\svnbridge

Open port 8080 on your firewall if neccessary

Edit c:\svnbridge\web.config

Change the TFSUrl to point to your TFS Server, e.g http://localhost:8080/tfs/DefaultCollection

Change DomainIncludesProjectName to False

Change LogPath to a path for the SVNBridge Logs

Update the ReadAllUser* properties to the local user you have just created

So now your web.config should look like

Step 4: Setup IIS

Run IIS Manager and Create a new website. The source directory should point to the svnbridge folder (e.g c:\svnbridge) and the port should be 8081

Click on the authentication tab and make sure that ONLY ASP.NET impersonation and digest authentication is enabled

Now goto Configuration editor and select the system.webServer/validation section

Set validateIntegratedModeConfiguration to false

Step 5: Install the Perfmon Counters

Open the SVNBridge solution and build the SvnBridge.PerfCounter.Installer project.

Run the SvnBridge.PerfCounter.Installer.exe found inside the bin\debug folder

Step 6: iisreset the system

Trigger an iisreset to flush everything and get it ready for SVN!

Categories: Development