From 721406bcde94d58770f9ec0549c0ab3d74f9cdb8 Mon Sep 17 00:00:00 2001 From: Mattias Karlsson Date: Mon, 16 May 2016 17:30:00 +0200 Subject: [PATCH] Specify culture for Roslyn debug string formats --- .../Scripting/Roslyn/Nightly/DebugRoslynNightlyScriptSession.cs | 2 +- src/Cake/Scripting/Roslyn/Stable/DebugRoslynScriptSession.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cake/Scripting/Roslyn/Nightly/DebugRoslynNightlyScriptSession.cs b/src/Cake/Scripting/Roslyn/Nightly/DebugRoslynNightlyScriptSession.cs index 4d9b176876..2aaa9841fe 100644 --- a/src/Cake/Scripting/Roslyn/Nightly/DebugRoslynNightlyScriptSession.cs +++ b/src/Cake/Scripting/Roslyn/Nightly/DebugRoslynNightlyScriptSession.cs @@ -77,7 +77,7 @@ public override void Execute(Script script) _log.Verbose("Compilation failed"); var errors = string.Join(Environment.NewLine, result.Diagnostics.Select(x => x.ToString())); - var message = string.Format("Error occurred when compiling: {0}", errors); + var message = string.Format(System.Globalization.CultureInfo.InvariantCulture, "Error occurred when compiling: {0}", errors); throw new CakeException(message); } diff --git a/src/Cake/Scripting/Roslyn/Stable/DebugRoslynScriptSession.cs b/src/Cake/Scripting/Roslyn/Stable/DebugRoslynScriptSession.cs index 744f40f72b..9b521ce792 100644 --- a/src/Cake/Scripting/Roslyn/Stable/DebugRoslynScriptSession.cs +++ b/src/Cake/Scripting/Roslyn/Stable/DebugRoslynScriptSession.cs @@ -60,7 +60,7 @@ public override void Execute(Script script) _log.Verbose("Compilation failed"); var errors = string.Join(Environment.NewLine, result.Diagnostics.Select(x => x.ToString())); - var message = string.Format("Error occurred when compiling: {0}", errors); + var message = string.Format(System.Globalization.CultureInfo.InvariantCulture, "Error occurred when compiling: {0}", errors); throw new CakeException(message); }