Skip to content

Exception on startup with version 8.3.0 #923

@LeDahu22

Description

@LeDahu22

Describe the bug

Hi,

After upgrading from 8.2.2 to 8.3.0, as soon I run my WPF application, I've got the following exception :

System.TypeInitializationException : 'The type initializer for 'Module' threw an exception.'
FileNotFoundException : Could not load file or assembly 'WinRT.Runtime, Version=2.1.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. Specified file not found.

It crashes on the very first line of OnStartup method :

IHost host = CreateHostBuilder().Build();

There seems to be something wrong related to WinRT.Runtime.

Thanks

Regression

8.2.2

Steps to reproduce

Not sure if I can provide a repro sample easily...

Expected behavior

App should start with no exception

IDE and version

VS 2022

IDE version

17.11.2

Nuget packages

  • CommunityToolkit.Common
  • CommunityToolkit.Diagnostics
  • CommunityToolkit.HighPerformance
  • CommunityToolkit.Mvvm (aka MVVM Toolkit)

Nuget package version(s)

8.3.0

Help us help you

No, just wanted to report this

Metadata

Metadata

Assignees

No one assigned

    Labels

    by designSome behavior that is intended and not an issueexternal ⤴️Something related to or caused by an external projectmvvm-toolkit 🧰Issues/PRs for the MVVM Toolkit

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions