Created
November 2, 2013 17:52
-
-
Save steenhulthin/7281575 to your computer and use it in GitHub Desktop.
Getting the path for ApprovalTests VisualStudioReporter from the registry.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class VisualStudioReporter : GenericDiffReporter | |
{ | |
private static readonly string DEVENV_REGISTRYKEY = | |
@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\devenv.exe"; | |
private static readonly string PATH = (string)Registry.GetValue(DEVENV_REGISTRYKEY, "", @"Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"); | |
public static readonly VisualStudioReporter INSTANCE = new VisualStudioReporter(); | |
public VisualStudioReporter() | |
: base( | |
PATH, | |
"/diff \"{0}\" \"{1}\"", | |
"Couldn't find Visual Studio at " + PATH) | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment