question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.NET hot reload issue with fody

See original GitHub issue

Describe the issue

I’ve a small mvvm based dotnet maui project. .NET hot reload works like a charm on project without fody, but it stops working after I add fody to the project and I got the following error no matter what I change.

image

Changing the version of an assembly reference is not allowed during debugging: 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' changed version to '6.0.0.0'

Minimal Repro

First of all, I created a working version of the project Then I pushed another commit which adds fody to the project and .net hot reload got broken.

Note that not all fody plugins have this issue, for example Virtuosity.Fody is .net hot reload friendly.

Make an effort to fix the bug

I’ve no idea how to deal with this issue )":

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

10reactions
SimonCroppcommented, Nov 9, 2021

Just to confirm: To be raising issues you should be a patron of Fody.

4reactions
SimonCroppcommented, Jan 6, 2022

support for hot reload will not be added by me any time soon. i suggest you stop using Fody or submit a PR that adds support

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Hot Reload on Visual Studio 2022
I was blaming VS for un-functional Hot Reload, but in my case it was caused by trying to Debug ( F5 ) and...
Read more >
Hot Reload is rubbish : r/Blazor
Just want to vent about how bad the hot reload functionality is. I know nobody from Microsoft will see this, but who cares....
Read more >
Hot Reloading Declarative C# UI for Xamarin.Forms with ...
It combines well with both the MVVM pattern (especially with Fody/PropertyChanged) and Reactive patterns, as well as with hot reload tools like ...
Read more >
Hot Reload Supports Modifying Generics! - .NET Blog
NET 8, Hot Reload supports modifying Generics! Supported Generic Scenarios. The supported generic scenarios for Hot Reload are: Add new (static, ...
Read more >
.NET 6 Hot Reload Controversy Explained - YouTube
The . NET world was rocked by controversy recently and I want to talk about it. The basic summary is that a tool...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found