WinForms WebView: Move OS check

Move OS check prior to type loading to throw more informative message
This commit is contained in:
Richard Murillo 2018-04-17 11:17:21 -07:00
Родитель 5fc39c0780
Коммит d3d5c898e3
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -67,6 +67,11 @@ namespace Microsoft.Toolkit.Win32.UI.Controls.WinForms
throw new InvalidOperationException();
}
if (!DesignMode)
{
OSVersionHelper.ThrowIfBeforeWindows10RS4();
}
Initialize();
}

Просмотреть файл

@ -489,7 +489,8 @@ Global
{2E49400E-B114-4FAE-B743-6CB57B500E31}.Release|x64.Build.0 = Release|Any CPU
{2E49400E-B114-4FAE-B743-6CB57B500E31}.Release|x86.ActiveCfg = Release|Any CPU
{2E49400E-B114-4FAE-B743-6CB57B500E31}.Release|x86.Build.0 = Release|Any CPU
{D103E448-64B1-407C-B09E-7C61AF9F2740}.Debug|Any CPU.ActiveCfg = Debug|x86
{D103E448-64B1-407C-B09E-7C61AF9F2740}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D103E448-64B1-407C-B09E-7C61AF9F2740}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D103E448-64B1-407C-B09E-7C61AF9F2740}.Debug|ARM.ActiveCfg = Debug|x86
{D103E448-64B1-407C-B09E-7C61AF9F2740}.Debug|x64.ActiveCfg = Debug|x86
{D103E448-64B1-407C-B09E-7C61AF9F2740}.Debug|x86.ActiveCfg = Debug|x86