Windows version too new for Forms.UI.XamlHost
ScruffR opened this issue · comments
Describe the bug
I get this exception thrown when I try to create an instance of Microsoft.Toolkit.Forms.UI.XamlHost
System.Exception
HResult=0x8000FFFF
Message=Catastrophic failure
WindowsXamlManager and DesktopWindowXamlSource are supported for apps targeting Windows version 10.0.18226.0 and later. Please check either the application manifest or package manifest and ensure the MaxTestedVersion property is updated.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
Steps to Reproduce
Steps to reproduce the behavior:
- Create a new .NET Core 3.1 Forms App
- Install packages
- Create a
private Microsoft.Toolkit.Forms.UI.XamlHost.WindowsXamlHost xamlHost;
- Add
this.xamlHost = new Microsoft.Toolkit.Forms.UI.XamlHost.WindowsXamlHost();
toInitializeComponents()
- run
Expected behavior
Shouldn't crash
Environment
NuGet Package(s):
Package Version(s):
![image](https://user-images.githubusercontent.com/6604878/109241639-f495d200-77d9-11eb-90ec-c1713d6ca0ec.png)
Project .NET Version:
- [X] .NET Core 3.1
Windows 10 Build Number:
- [X] 20H2 Update (19042.844)
App min and target version:
- [X] May 2019 Update (18362)
Device form factor:
- [X] Surface Pro 7
Visual Studio
- [X] 2019 (version: 16.8.6)
- [X] 2019 Preview (version: 16.9.0 Preview 5.0)
Hello ScruffR, thank you for opening an issue with us!
I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback
This issue has been marked as "needs attention
FYI @marb2000