-
Type: Bug
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
What happened?
When you use Realm 10.19.0 in a .NET MAUI Blazor App .NET 6 and then use Hot Reload this will not work and the application will ask you to stop and edit.
I've also tested this with a brand new project with only Realm added and then created an instance of the database and written an object to a collection.
Error Message
Severity Code Description Project File Line Suppression State
Error CS7038 Failed to emit module 'MauiApp2': Changing the version of an assembly reference is not allowed during debugging: 'System.Linq.Queryable, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' changed version to '6.0.0.0'. MauiApp2 (net6.0-android) 1 Active
This maybe because of the Remotion.Linq dependency which has been added to Realm.
Repro steps
- Create a new project with .NET MAUI Blazor App .NET 6
- Add Realm 10.19.0
- Go to the Counter page and in the IncrementCount() write some code to add objects to a collection.
- Run the application
- Test the button to add an item to the database
- Add some text to the HTML on any page
- Whilst the app is running click Hot Reload
You will see that Hot Reload does not work and Visual Studio will ask you to edit or stop the app.
Version
.NET 6.0
What Atlas Services are you using?
Local Database only
What type of application is this?
Other
Client OS and version
Windows 10, .NET MAUI Blazor application
Code snippets
No response
Stacktrace of the exception/crash you're getting
Severity Code Description Project File Line Suppression State Error CS7038 Failed to emit module 'MauiApp2': Changing the version of an assembly reference is not allowed during debugging: 'System.Linq.Queryable, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' changed version to '6.0.0.0'. MauiApp2 (net6.0-android) 1 Active
Relevant log output
No response