-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.The author of this issue needs to respond in order for us to continue investigating this issue.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issueIndicates that the team needs a repro project to continue the investigation on this issuearea-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIfeature-hot-reloadThis issue is related to the Hot Reload feaatureThis issue is related to the Hot Reload feaature
Description
Scenario:
- Blazor hybrid app hosted in WinForms.
- Run the app with: dotnet watch run
- Hot reload was working for a short time
- Now, when making a change in a razor page, dotnet watch spams out a bunch of errors that looks like the code from all of the razor.cs partials in my project are no longer associated with the corresponding .razor code.
Here are some examples of different errors...
- error CS0117: 'object' does not contain a definition for 'OnInitializedAsync'
- error CS0117: 'object' does not contain a definition for 'OnParametersSet'
- error CS0117: 'object' does not contain a definition for 'OnAfterRenderAsync'
- error CS0103: The name 'InvokeAsync' does not exist in the current context
- error CS0103: The name 'StateHasChanged' does not exist in the current context
- error CS0115: 'PasswordChange.OnInitializedAsync()': no suitable method found to override
etc. etc.
Pretty much any symbol defined in the .razor markup is not resolved, and this occurs for every single component in the project.
====================================
Project Information
====================================
====================================
System Information
====================================
.NET SDK (reflecting any global.json):
Version: 6.0.403
Commit: 2bc18bf292
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19044
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\6.0.403\
Host:
Version: 7.0.3
Architecture: x64
Commit: 0a2bda10e8
Metadata
Metadata
Assignees
Labels
Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.The author of this issue needs to respond in order for us to continue investigating this issue.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issueIndicates that the team needs a repro project to continue the investigation on this issuearea-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIfeature-hot-reloadThis issue is related to the Hot Reload feaatureThis issue is related to the Hot Reload feaature