Skip to content

[WebToolsE2E][Green]C# Hot reload doesn't work in Aprire.ApiService #3025

@v-reinawang

Description

@v-reinawang

REGRESSION INFO: Not repro in March release C# devkit 3.10.14(C#2.130.5)
INSTALL STEPS

  1. OS: window x64
  2. Install SDK 10.0.203
  3. Install VS Code insider - 1.119.0
  4. Install April prerelease 4(RC) C# devkit 3.14.196(C#2.136.19)
  5. Aspire: 13.4

REPRO STEPS

  1. Explorer > Create .NET Project > Aspire Starter App (ASP.NET Core/Blazor)
  2. Run the ApiService: right click on ProjectName.ApiService.csproj > Debug > Start New Instance
  3. Navigate to the ApiService endpoint and open /weatherforecast
  4. Update ProjectName.ApiService/Program.cs by changing
    public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
    to
    public int TemperatureF => TemperatureC;
  5. Press Hot Reload button

ACTUAL
Hit an error: "Cannot apply changes -- unexpected error"

Image

EXPECTED
Hot reload succeeded.

Metadata

Metadata

Labels

area-hotreloadIssues with Hot Reload experiencesbugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions