Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-934

Hot reload does not work with Realm 10.19.0 and .NET MAUI Blazor App .NET 6

      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

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: