View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014038CMake(No Category)public2013-03-22 16:352013-10-07 10:04
Reporterszx 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 2.8.10.2 
Target VersionCMake 2.8.11Fixed in VersionCMake 2.8.11 
Summary0014038: Generate different .sln header for Express edition of Visual Studio
DescriptionWhen you open a CMake-generated .sln file in Visual Studio 2012 Express and you have another version of Visual Studio installed (like VC++ 2010 Express), a selection dialog will show up offering you to choose which version of Visual Studio to use to open the solution file.

However if you create a solution from within Visual Studio 2012 Express itself, there will be no dialog when you open the solution but it will open immediately in VS 2012 Express.
Additional InformationI've done a bit of research on the subject and found that the second line of .sln files created by VS 2012 Express is different from that of generated by CMake:

This is how Visual Studio does it:
# Visual Studio 2012 Express for Windows Desktop

This is how CMake does it:
# Visual Studio 11

This isn't specific to VS 2012 only. For instance, Visual C++ 2010 Express seems to use the same scheme too.

I managed to extract all possible identification strings from one of the VS executables (namely WDExpress.exe), and here they are:

# Visual Studio 2010\r\n
# Visual Basic Express 2010\r\n
# Visual C# Express 2010\r\n
# Visual C++ Express 2010\r\n
# Visual Web Developer Express 2010\r\n
# Visual Studio 2010 Tools for Applications\r\n
# Rascal (2010 Version)\r\n
# Visual Studio 10\r\n
# Visual Basic Express 10\r\n
# Visual C# Express 10\r\n
# Visual C++ Express 10\r\n
# Visual Web Developer Express 10\r\n
# Visual Studio 10 Tools for Applications\r\n
# Rascal (Version 10)\r\n
# Visual Studio 2010 Express for Windows Phone\r\n
# Visual Studio 11\r\n
# Visual Web Developer Express 11\r\n
# Rascal (Version 11)\r\n
# Visual Studio 11 Express for Windows Phone\r\n
# Visual Studio 11 Express for Windows 8\r\n
# Visual Studio 2012\r\n
# Visual Studio Express 2012 for Web\r\n
# Rascal (2012 Version)\r\n
# Visual Studio Express 2012 for Windows Phone\r\n
# Visual Studio Express 2012 for Windows 8\r\n
# Visual Studio Express 2012 for Windows Desktop\r\n

Some of them have nothing to do with C++ though but I listed them for completeness.
TagsNo tags attached.
Attached Filespatch file icon vs-express-sln.patch [^] (1,664 bytes) 2013-03-23 05:34 [Show Content]

 Relationships
related to 0009758closedBrad King Can't open (double-clicking in Explorer) generated .SLN files for Visual Studio 2010 

  Notes
(0032696)
Brad King (manager)
2013-03-25 14:28

Thanks for the patch. Applied with explanation in commit message:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c677838c [^]
(0034014)
Robert Maynard (manager)
2013-10-07 10:04

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2013-03-22 16:35 szx New Issue
2013-03-23 05:34 szx File Added: vs-express-sln.patch
2013-03-25 13:33 Brad King Relationship added related to 0009758
2013-03-25 14:28 Brad King Note Added: 0032696
2013-03-25 14:28 Brad King Assigned To => Brad King
2013-03-25 14:28 Brad King Status new => resolved
2013-03-25 14:28 Brad King Resolution open => fixed
2013-03-25 14:28 Brad King Fixed in Version => CMake 2.8.11
2013-03-25 14:28 Brad King Target Version => CMake 2.8.11
2013-10-07 10:04 Robert Maynard Note Added: 0034014
2013-10-07 10:04 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team