I have already written about Brian Keller’s excellent OData Service for Team Foundation Server. He has now published version 2 of the same service, check out his blog post for more information. Besides the new service, there is also a Windows 8 application that you can download that uses the same service. Let’s see what has been changed.
First you need to download OData Service and unpack it. Then download and install the following components:
- Visual Studio 2012 Update 1
- Windows Azure SDK for .NET – in case you want to deploy on Azure, completely optional.
That’s it. Open
code directory and navigate to Web.Config. Once there, find the following tag and simply point it to your TFS server (please note that currently it won’t work with TFS Service).
<add key="ODataTFS.TfsServer" value="https://tfs.codeplex.com/tfs" />
I also suggest that you comment out the following tag in the same config for the testing, do not turn it off in production:
If you are running this on IIS Express, your links will all be broken. To fix that, navigate to
Default.aspx and change the following line:
var baseUrl = this.Context.Request.Url.GetComponents(UriComponents.SchemeAndServer & ~UriComponents.Port, UriFormat.UriEscaped).ToString();
var baseUrl = this.Context.Request.Url.GetComponents(UriComponents.SchemeAndServer | UriComponents.Port, UriFormat.UriEscaped).ToString();
Now all links should work. That’s it, now you have your simple OData service working for your on-premises TFS.
Last updated byat .
- Installing and configuring OData Service for TFS 11
- Consuming OData for TFS using C#
- Consuming OData for TFS using C# from Windows Phone 7 application
- Creating and updating Work Items via OData for TFS
- Installing and configuring OData Service for TFS v2