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

Commit 3490860

Browse files
committed
Fix CA errors.
1 parent 2e5ffb0 commit 3490860

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/GitHub.TeamFoundation.14/RegistryHelper.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using GitHub.Services;
1010
using Microsoft.Win32;
1111
using Serilog;
12+
using static System.FormattableString;
1213

1314
namespace GitHub.TeamFoundation
1415
{
@@ -18,7 +19,7 @@ internal class RegistryHelper
1819

1920
static RegistryKey OpenGitKey(string path)
2021
{
21-
var keyName = $"Software\\Microsoft\\VisualStudio\\{MajorVersion}.0\\TeamFoundation\\GitSourceControl\\{path}";
22+
var keyName = Invariant($"Software\\Microsoft\\VisualStudio\\{MajorVersion}.0\\TeamFoundation\\GitSourceControl\\{path}");
2223
return Registry.CurrentUser.OpenSubKey(keyName, true);
2324
}
2425

@@ -64,7 +65,7 @@ internal static string PokeTheRegistryForLocalClonePath()
6465
const string MRUKeyPath = "MRUSettingsLocalProjectLocationEntries";
6566
internal static string SetDefaultProjectPath(string path)
6667
{
67-
var newProjectDialogKeyPath = $"Software\\Microsoft\\VisualStudio\\{MajorVersion}.0\\NewProjectDialog";
68+
var newProjectDialogKeyPath = Invariant($"Software\\Microsoft\\VisualStudio\\{MajorVersion}.0\\NewProjectDialog");
6869

6970
var old = String.Empty;
7071
try

0 commit comments

Comments
 (0)