.NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
After upgrading the package to 8.3.0, the project can be successfully built, but XAML throws an exception:
System.IO.FileNotFoundException: Message = “Could not load file or assembly 'WinRT. Culture=neutral, PublicKeyToken=99ea127f02d97709'. The system could not find the specified file.”
How do I fix this?
Regression
8.2.2
Steps to reproduce
Create a template WinUI3 project
Import CommunityToolkit.MVVM 8.3.0
Add any classes of MVVM to XamlTypeInfo.g.cs
e.g.
public sealed partial class MainWindow : Window
{
public MainWindow() => InitializeComponent();
public ObservableObject MyProperty { get; set; } = null;
}
Describe the bug
After upgrading the package to 8.3.0, the project can be successfully built, but XAML throws an exception:
System.IO.FileNotFoundException: Message = “Could not load file or assembly 'WinRT. Culture=neutral, PublicKeyToken=99ea127f02d97709'. The system could not find the specified file.”
How do I fix this?Regression
8.2.2
Steps to reproduce
CommunityToolkit.MVVM
8.3.0XamlTypeInfo.g.cs
e.g.
Expected behavior
Not crashed
Screenshots
IDE and version
VS 2022
IDE version
17.11.2
Nuget packages
Nuget package version(s)
8.3.0
Additional context
Help us help you
No, just wanted to report this