diff --git a/src/GitReleaseManager.Core/ReleaseNotes/ReleaseNotesBuilder.cs b/src/GitReleaseManager.Core/ReleaseNotes/ReleaseNotesBuilder.cs index b2cc564d..1ee2b426 100644 --- a/src/GitReleaseManager.Core/ReleaseNotes/ReleaseNotesBuilder.cs +++ b/src/GitReleaseManager.Core/ReleaseNotes/ReleaseNotesBuilder.cs @@ -60,7 +60,7 @@ public async Task BuildReleaseNotesAsync(string user, string repository, if (issues.Count == 0) { - var logMessage = string.Format("No closed issues have been found for milestone {0}, or all assigned issues are meant to be excluded from release notes, aborting creation of release.", _milestoneTitle); + var logMessage = string.Format(CultureInfo.InvariantCulture, "No closed issues have been found for milestone {0}, or all assigned issues are meant to be excluded from release notes, aborting creation of release.", _milestoneTitle); throw new InvalidOperationException(logMessage); } diff --git a/src/GitReleaseManager.Core/VcsService.cs b/src/GitReleaseManager.Core/VcsService.cs index 2a5f88a7..c98ec420 100644 --- a/src/GitReleaseManager.Core/VcsService.cs +++ b/src/GitReleaseManager.Core/VcsService.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.IO; using System.Linq; using System.Security.Cryptography; @@ -141,7 +142,7 @@ private async Task AddAssetsAsync(string owner, string repository, string tagNam { if (!File.Exists(asset)) { - var message = string.Format("Requested asset to be uploaded doesn't exist: {0}", asset); + var message = string.Format(CultureInfo.InvariantCulture, "Requested asset to be uploaded doesn't exist: {0}", asset); throw new FileNotFoundException(message); } @@ -185,7 +186,7 @@ private async Task AddAssetsAsync(string owner, string repository, string tagNam if (!release.Body.Contains(_configuration.Create.ShaSectionHeading)) { _logger.Debug("Creating SHA section header"); - stringBuilder.AppendLine(string.Format("### {0}", _configuration.Create.ShaSectionHeading)); + stringBuilder.AppendLine(string.Format(CultureInfo.InvariantCulture, "### {0}", _configuration.Create.ShaSectionHeading)); } foreach (var asset in assets) @@ -199,7 +200,7 @@ private async Task AddAssetsAsync(string owner, string repository, string tagNam _logger.Debug("Creating SHA checksum for {Name}.", file.Name); - stringBuilder.AppendFormat(_configuration.Create.ShaSectionLineFormat, file.Name, ComputeSha256Hash(asset)); + stringBuilder.AppendFormat(CultureInfo.InvariantCulture, _configuration.Create.ShaSectionLineFormat, file.Name, ComputeSha256Hash(asset)); stringBuilder.AppendLine(); }