WinForms WebView: Move OS check
Move OS check prior to type loading to throw more informative message
This commit is contained in:
Родитель
5fc39c0780
Коммит
d3d5c898e3
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче