AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
26.13k stars 2.26k forks source link

The type initializer for 'Avalonia.Xaml.Interactivity.Interaction' threw an exception. #9999

Closed laolarou726 closed 1 year ago

laolarou726 commented 1 year ago

Describe the bug

I just removed Avalonia.ReactiveUI from my project. Then this exception shows.

FileNotFoundException: Could not load file or assembly 'System.Reactive, Version=5.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263'. The system could not find file

To Reproduce Steps to reproduce the behavior:

  1. Remove Avalonia.ReactiveUI from the project
  2. See the error

Expected behavior

The program should run normally without System.Reative package

Screenshots

image

Desktop (please complete the following information):

maxkatz6 commented 1 year ago

The program should run normally without System.Reative package

Behaviors SDK relies on reactive package. It needs to be recompiled (it probably will be with preview5) or you can add this package in your app.