Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit e782108

Browse files
committed
Fix CA errors
Explicitly specify CultureInfo.CurrentCulture. Make class BindingPathHelper static.
1 parent 5ceaefc commit e782108

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/GitHub.VisualStudio/Helpers/BindingPathHelper.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Linq;
44
using System.Reflection;
55
using System.Diagnostics;
6+
using System.Globalization;
67
using System.Collections.Generic;
78
using GitHub.Logging;
89
using Microsoft.VisualStudio.Shell;
@@ -37,9 +38,9 @@ namespace GitHub.VisualStudio.Helpers
3738
/// binding path. It will return any alternative paths that is finds.
3839
/// See https://github.com/github/VisualStudio/issues/1995
3940
/// </remarks>
40-
public class BindingPathHelper
41+
public static class BindingPathHelper
4142
{
42-
static readonly ILogger log = LogManager.ForContext<BindingPathHelper>();
43+
static readonly ILogger log = LogManager.ForContext(typeof(BindingPathHelper));
4344

4445
internal static void CheckBindingPaths(Assembly assembly, IServiceProvider serviceProvider)
4546
{
@@ -58,7 +59,7 @@ internal static void CheckBindingPaths(Assembly assembly, IServiceProvider servi
5859
// Log what has been detected
5960
log.Warning("Found assembly on wrong binding path {BindingPath}", bindingPath);
6061

61-
var message = string.Format(@"Found assembly on wrong binding path:
62+
var message = string.Format(CultureInfo.CurrentCulture, @"Found assembly on wrong binding path:
6263
{0}
6364
6465
Would you like to learn more about this issue?", bindingPath);

0 commit comments

Comments
 (0)