-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event Generation in AvaloniaVS Causes Preview to Crash #402
Comments
It is required to recompile C# project in order to see any changes in the previewer. |
Alternatively, extension can force recompilation which isn't always a desired solution. |
It works without recompilation in WPF. Do we have any options to make that work as it does in WPF? |
No. Well, we can inject an empty event handler into the assembly, but I feel like it will cause more conflicts between original and modified assemblies. Keep in mind that WPF previewer didn't actually run the application, but only previewed the XAML. |
However, it doesn't even fix even after I recompile the project. The previewer says invalid markup and the error list says I swear that my function signature is correct and the code is able to run without exceptions. |
Describe the bug
The preview crashes as soon as an event is generated. The preview only comes back to life after building the project. Until then, the preview remains in a crashed state.
Recording.2023-10-11.090303.mp4
To Reproduce
Open a AvaloniaUI project in Visual Studio.
Use the Avalonia for Visual Studio extension to generate an event.
Observe that the preview crashes immediately after the event is generated.
AvaloniaVS plugin version
11.4
Avalonia version
11.0.2
Visual Studio version
17.8.0 Preview 3.0
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: