MantisBT - CMake
View Issue Details
0012572CMakeCMakepublic2011-11-10 16:502012-04-02 10:10
Mateusz Loskot 
David Cole 
normalminoralways
closedfixed 
Windows 64-bitMicrosoft Windows 7 Professional6.1
CMake 2.8.6 
CMake 2.8.7CMake 2.8.7 
0012572: .sln file signature does not match Visual Studio 11
Solution files (.sln) generated by cmake -G "Visual Studio 11" command output .sln file signature (the first two lines) which does not match release of Visual Studio 11 (currently Developer Preview).

It leads to the problem with recognising those .sln files Windows Explorer and Visual Studio Version Selector.

The first two lines CMake generates are:

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2011

but should be:

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 11


On double-click of such .sln file (with the incorrect signature), error message is displayed saying: "File version is not supported by the launcher" (see screenshot).

Windows Explorer also does not display correct Visual Studio 11 icon for .sln file, but displays "blank" VS icon without version number.


Here is the .sln file signature issue explained:

http://blogs.msdn.com/b/andrewarnottms/archive/2008/02/13/why-double-clicking-on-an-sln-file-doesn-t-always-launch-visual-studio.aspx [^]
No tags attached.
png vs11-file-version-not-supported-by-launcher.png (87,924) 2011-11-10 16:50
https://public.kitware.com/Bug/file/4115/vs11-file-version-not-supported-by-launcher.png
png
Issue History
2011-11-10 16:50Mateusz LoskotNew Issue
2011-11-10 16:50Mateusz LoskotFile Added: vs11-file-version-not-supported-by-launcher.png
2011-11-10 17:21Brad KingNote Added: 0027753
2011-11-10 17:21Brad KingStatusnew => resolved
2011-11-10 17:21Brad KingResolutionopen => fixed
2011-11-10 17:21Brad KingAssigned To => David Cole
2011-11-11 13:49David ColeFixed in Version => CMake 2.8.7
2011-11-11 13:49David ColeTarget Version => CMake 2.8.7
2012-04-02 10:10David ColeNote Added: 0029041
2012-04-02 10:10David ColeStatusresolved => closed

Notes
(0027753)
Brad King   
2011-11-10 17:21   
This was fixed recently:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f0d66ab4 [^]
(0029041)
David Cole   
2012-04-02 10:10   
Closing resolved issues that have not been updated in more than 4 months.