From 4c5574a15d6458673c410622e501ba682a783781 Mon Sep 17 00:00:00 2001 From: Robert Goulet Date: Thu, 29 Jan 2015 13:38:46 -0500 Subject: [PATCH 1/2] VS: Add missing newlines to .vcxproj generation --- Source/cmVisualStudio10TargetGenerator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index d2f6ffd88..d6b87b8b1 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2796,12 +2796,12 @@ void cmVisualStudio10TargetGenerator::WriteApplicationTypeSettings() if(isAppContainer) { this->WriteString("true" - "", 2); + "\n", 2); } else if (this->Platform == "ARM") { this->WriteString("true" - "", 2); + "\n", 2); } } From 500794b0db3d7dfa121069f336b69923839bada1 Mon Sep 17 00:00:00 2001 From: Robert Goulet Date: Thu, 29 Jan 2015 13:38:52 -0500 Subject: [PATCH 2/2] VS: Set default language in generated Windows Phone and Store projects Otherwise building such projects gives: warning APPX1901: The DefaultLanguage property is either missing from the project file or does not have a value --- Source/cmVisualStudio10TargetGenerator.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index d6b87b8b1..a286049cb 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2762,6 +2762,8 @@ void cmVisualStudio10TargetGenerator::WriteApplicationTypeSettings() this->WriteString("", 2); (*this->BuildFileStream) << cmVS10EscapeXML(v) << "\n"; + this->WriteString("en-US" + "\n", 2); if(v == "8.1") { // Visual Studio 12.0 is necessary for building 8.1 apps