Closed icarlthiscode closed 5 years ago
Dupe of #230 which has workaround instructions. It's an issue with the unit test project.
I have the same error in a regular project (not unit test). I used that project to repro a bug which was supposed to be solved with WinUI2.2. But after upgrading from 2.1 I had the issue explained above.
I'm getting same issue on a brand new app. Something isn't fixed here
@FrancoisM You need to add XamlControlsResources to your app.xaml file. See details here.
@crutkas Can you check your App.xaml as well ?
Yup, that is, this really needs to be a better runtime check. Super easy to miss.
The bug that this was dup'ed against also doesn't have a clear "this is how you fix it" too.
When you add the nuget package, it currently shows a readme with exactly the steps needed to avoid this. One thing to note that this will be a non-issue in WinUI3 where you will not have to do this extra step.
After recent updates, UWP Unit Test App fails at InitializeComponent() within page using Microsoft.UI.Xaml.Controls.NavigationView.
Steps to reproduce the behavior:
Expected behavior Test will not throw:
Version Info Project Target Version: Win 10.0 18362 OS: Win 10.0 18362.329
NuGet package version: Microsoft.UI.Xaml 2.2.190830001
Additional context