0

I'm setting up TeamCity 8.1 in an empty Windows 7 machine. What are the minimal software requirements in order to build a ASP.NET MVC Web Application created in Visual Studio 2013?

I will be using both Github and Subversion as source version control system (VCS).

On my first try there was no problems connecting to the VCS's. But I immediately started to get build errors, starting with

Unmet requirements: MSBuildTools12.0_x86_Path exists.

This is not so much a question since I'm answering it myself. I wanted to list the error messages I got in the process and how I solved them. I'm hoping this will help someone else in the same situation.

Edminsson
  • 2,426
  • 20
  • 25
  • I initially got some downvotes for my question probably because it wasnt clear that I was planning on answering it myself and I had put all the effort in the answer. – Edminsson Aug 16 '14 at 09:21

1 Answers1

3

After installing TeamCity 8.1 this is the errors I encountered trying to build an ASP.NET MVC Web Application and how I solved them:

The first error

Unmet requirements: MSBuildTools12.0_x86_Path exists

The second error

error MSB4019: 
The imported project 
"C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found.
  • You can find a description of the problem here MSBuild in TeamCity of Visual Studio 2012 solution

    • The right folders for VS2013 are
    • C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web
    • C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\WebApplications

The third error

Occurs if you don't copy the package folder to your VCS. Then you need to restore the nuget packages before you build.

error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web'

Fourth problem Happens if you have a test project with references to dll's that are not in the TeamCity server.

error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft'
Community
  • 1
  • 1
Edminsson
  • 2,426
  • 20
  • 25