Skip to content

HotReloadΒ #436

@MarcMenghin

Description

@MarcMenghin

What happened?

As long as Aspire is running I am not able to properly debug a restarted application (Windows.Forms). This might be a Rider or general Aspire problem and not directly related to the Aspire Plugin.

First, what works: I run my Aspire setup with different services. This also includes a management Windows.Forms app. I can exit the app and start it again using the aspire dashboard. Debuging and Breakpoints work fine which is amazing.

Now, if I change some code in my management app that breaks hotreload (e.g. change a method to async), Rider will notify me that hot reload will not work and I need to restart the app. So, I close the app and start it again using the aspire dashboard or Rider itself. This works, but now, any time I have a breakpoint or other reason where the debugger stops the apps execution, I am not able to continue. Rider locks me with "[ENC0085] Changing method from asynchronous to synchronous requrires restarting the application.", which is what I did.

This stays like this until I restart the whole aspire environment itself (which takes many minutes to be ready again).

I am not sure if this will also happen for any hot-reload-breaking change to any of the running services. Also, I did not test what VS does in this case.

Steps to reproduce

  1. Have an Aspire setup with e.g. a Windows.Forms app.
  2. Stop the app and make a hot reload incompatible change
  3. start the app again with a breakpoint that is hit
  4. now try to continue execution, which will not work.

Expected behavior

Rider lets me continue execution after I restarted the app.

JetBrains Rider version

2025.14

.NET Aspire plugin version

1.7.10

.NET Aspire version

9.3.2

.NET version

9.0.301

Operating System

Windows

Link to a test project to reproduce the bug

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions