MantisBT - CMake
View Issue Details
0015440CMakeCMakepublic2015-03-11 07:052015-11-02 09:13
Felix Bruns 
 
normalminoralways
closedduplicate 
WindowsWindows8.1
CMake 3.2 
 
0015440: "Visual Studio Version Selector" launches incorrect version when opening generated UTF-8 solution file.
Since solution (*.sln) files are encoded as UTF-8 (with signature), "Visual Studio Version Selector" doesn't detect the file format version correctly.

Opening the file with an editor, then saving it as UTF-8 (without signature) fixes the problem.
1. Install "Visual Studio 12 2013"
2. Install "Visual Studio 14 2015"
3. Install "CMake 3.2.0-rc2"
4. Generate a solution file using the "Visual Studio 12 2013" generator.
5. Double-click solution file in Explorer.

Actual:

6. "Visual Studio 14 2015" is launched.
7. Solution file icon shows no version number in Explorer.

Expected:

6. "Visual Studio 12 2013" is launched.
7. Solution file icon shows correct version number in Explorer.

Workaround:

1. Use Notepad2 to open/save solution file with encoding "UTF-8" (_not_ "UTF-8 with Signature")
2. Double-click solution file in Explorer.
3. "Visual Studio 12 2013" is launched.
4. Solution file icon shows correct version number in Explorer.
No tags attached.
duplicate of 0015418closed Brad King Wrong encoding for generated .sln 
Issue History
2015-03-11 07:05Felix BrunsNew Issue
2015-03-11 08:28Brad KingRelationship addedduplicate of 0015418
2015-03-11 08:28Brad KingStatusnew => resolved
2015-03-11 08:28Brad KingResolutionopen => duplicate
2015-11-02 09:13Robert MaynardNote Added: 0039729
2015-11-02 09:13Robert MaynardStatusresolved => closed

Notes
(0039729)
Robert Maynard   
2015-11-02 09:13   
Closing resolved issues that have not been updated in more than 4 months.