MicrosoftDocs / windows-dev-docs

Conceptual and overview content for developing Windows apps
Creative Commons Attribution 4.0 International
682 stars 1.19k forks source link

Exception thrown, even the manifest is set correctly. #1794

Closed dongle-the-gadget closed 5 years ago

dongle-the-gadget commented 5 years ago

Even though I have setup the manifest correctly, the InitializeComponent() throws this exception: TypeLoadException: Could not find Windows Runtime type 'Microsoft.Toolkit.Win32.UI.XamlHost.IXamlMetadataContainer'.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

mcleanbyron commented 5 years ago

Thanks for reporting this issue. It turned out that there was a bug in the 6.0.0-preview6.3 release of the Microsoft.Toolkit.Wpf.UI.Controls NuGet package. The engineering team has fixed the bug and released an updated 6.0.0-preview6.4 version of the package. Please try these steps again with the latest package, and feel free to reopen this issue if you encounter further problems.