Browse Source

Fix #2783: Include preview versions of .NET in preconfigured assembly list selection.

pull/2789/head
Siegfried Pammer 3 years ago
parent
commit
5ac135095c
  1. 4
      ILSpy/ViewModels/ManageAssemblyListsViewModel.cs

4
ILSpy/ViewModels/ManageAssemblyListsViewModel.cs

@ -71,7 +71,7 @@ namespace ICSharpCode.ILSpy.ViewModels @@ -71,7 +71,7 @@ namespace ICSharpCode.ILSpy.ViewModels
continue;
foreach (var versionDir in Directory.GetDirectories(sdkDir))
{
var match = Regex.Match(versionDir, @"[/\\](?<name>[A-z0-9.]+)[/\\](?<version>\d+\.\d)+(.(?<revision>\d+))?$");
var match = Regex.Match(versionDir, @"[/\\](?<name>[A-z0-9.]+)[/\\](?<version>\d+\.\d)+(.(?<revision>\d+))?(?<suffix>-preview.*)?$");
if (!match.Success)
continue;
string name = match.Groups["name"].Value;
@ -250,7 +250,7 @@ namespace ICSharpCode.ILSpy.ViewModels @@ -250,7 +250,7 @@ namespace ICSharpCode.ILSpy.ViewModels
if (manager.AssemblyLists.Contains(dlg.ListName))
{
args.Cancel = true;
MessageBox.Show(Properties.Resources.ListExistsAlready, null, MessageBoxButton.OK);
MessageBox.Show(Resources.ListExistsAlready, null, MessageBoxButton.OK);
}
}
};

Loading…
Cancel
Save