Skip to content

CSharp: fix generation fail in environment except English

When I generate C# project, generation failed by Visual Studio(Japanese version).

Environment: Windows 10 Pro version 1703 build 15063.674
Visual Studio 2017 Community Version 15.4.1 (Japanease version)
cmake-3.10.0-rc4-win64-x64.msi

When CMakeDetermineCSharpCompiler.cmake acquires version number of csc.exe, and look for "Version".
For example, in the case of Japanese, It cannot acquire version number because it is displayed as follows.

version

I was able to revise it by "csc.exe /help /preferreduilang:en-US" in CMakeDetermineCSharpCompiler.cmake.

This request is reflection of @guttally's contribution. His GitHub ID is https://github.com/guttally .

Thank you and I'm sorry my poor English.

Topic-rename: csharp-version-english

Edited by Brad King

Merge request reports