Skip to content

Instantly share code, notes, and snippets.

@giansalex
Last active November 16, 2017 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giansalex/706bf486bb747b5b5d6509e845e9e06d to your computer and use it in GitHub Desktop.
Save giansalex/706bf486bb747b5b5d6509e845e9e06d to your computer and use it in GitHub Desktop.
Lista de versiones de Visual Studio
var registry = Microsoft.Win32.Registry.ClassesRoot;
var subKeyNames = registry.GetSubKeyNames();
var regex = new System.Text.RegularExpressions.Regex(@"^VisualStudio\.edmx\.(\d+)\.(\d+)$");
foreach (var subKeyName in subKeyNames)
{
    var match = regex.Match(subKeyName);
    if (match.Success)
        Console.WriteLine("V" + match.Groups[1].Value + "." + match.Groups[2].Value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment