Question

Rohit.Agarwal on Mon, 04 Jan 2016 13:46:41


Hello,

I am setting up a build server (Teamcity) and will be building .Net framework 4.0 and 4.5.2 applications. I will also like to execute MSTest cases after build and get code coverage. Most of my projects are VS2013 and some are VS2010.

  1. Do I need Visual Studio 2013 installed on build server?
  2. If no What VS tools and what version I need to get installed? 
  3. Would MS Build Tools 2013 suffice for both 4.0 and 4.5.2 frameworks?  
  4. If I install 4.0 and 4.5.2 frameworks would MSBuild install with it?
  5. For unit tests and code coverage what is required in addition to MS Build? 

Thanks


Rohit


Sponsored



Replies

Jamles Hez on Tue, 05 Jan 2016 02:12:49


Hi Rohit,

Welcome to the forum, then to answer your questions:

>>Do I need Visual Studio 2013 installed on build server?

No, you don't need, VS2013 is a IDE which also include the edit environment other than the build environment.

>>If no What VS tools and what version I need to get installed? 

To install this: https://www.microsoft.com/en-us/download/details.aspx?id=40760

If you don't have Visual Studio installed on your computer, you can use Build Tools 2013 to build managed applications. The Visual Basic and C# compilers are also included in this download. (In earlier versions, these tools were included in the stand-alone .NET Framework.)

>>Would MS Build Tools 2013 suffice for both 4.0 and 4.5.2 frameworks?  

Why not use Build Tool 2015? It is the latest version, as I know by default VS2013 support 4.5.1, not sure if support 4.5.2...perhaps you can give a try.

>>If I install 4.0 and 4.5.2 frameworks would MSBuild install with it?

No, what you installed is only the .net framework, not the build engine.

>>For unit tests and code coverage what is required in addition to MS Build? 

Install the Unit Test Framework.

--James

Rohit.Agarwal on Tue, 05 Jan 2016 04:34:21


Many Thanks!!