Running a Visual Studio 2010 upgraded project in TeamCity
Posted
Wednesday, October 13, 2010 6:51 PM
by
ysa
You’ve upgraded your project to Visual Studio 2010 and .Net framework 4. Good for you! But when you checked in the projects and the build in TeamCity starts to run – alas – Build failed!
In order to run an upgraded project in VS2010 follow these steps:
- Make sure your TeamCity server can run VS2010 solutions (version 5 and up of TC).
- Install Visual Studio 2010 and .Net framework 4 on your server.
- If your project is a web project which uses Web Deployment Project, install web deployment project for VS 2010 on the server.
- Now you need to configure TeamCity to run your project in VS2010:
- Enter your TeamCity web access
- Click “Administration” button
- Click your project configuration in the list.
- Click on “Runner” in the right menu (Can show as “Runner: Visual Studio (sln)”)
- Change the value of “Visual Studio” property to “Visual Studio 2010”
- If your using nUnit, change the value of “Framework” under the nUnit definitions to 4.0 (if that doesn’t appear select a different version of nUnit).
- Run the build of the project
Good luck!