The solution version of Visual Studio 2013 is not correct when VisualStudioVersion is resolved in MSBuild

When creating a new solution in Visual Studio 2013, the top of the file looks like this:

Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2013 VisualStudioVersion = 12.0.30110.0 

Is this format version incorrect? VS2012 (v11) had a version of the format 12.00, so why did not Visual Studio 2013 (v12) receive a version of the format 13.00?

This causes a problem with our build server, because according to this article (see No. 2):

http://sedodream.com/2012/08/19/VisualStudioProjectCompatabilityAndVisualStudioVersion.aspx

The variable MSBuild VisualStudioVersion set using -1 version of the format. Our build server has only VS2013 and related tools (therefore it is installed in C: \ Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v12.0), but the assembly fails because the VisualStudioVersion parameter is set automatically to 11 and looks in the wrong way (C: \ Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v11.0)

Am I missing something or if the version of the format was increased using Visual Studio 2013?

+6
source share
1 answer

The format version for Visual Studio 2013 is 12.0. If you have a build server that is not TFS2013, add the following MSBuild argument to the build definition: /p:VisualStudioVersion=12.0

+11
source

All Articles