Skip to content

[Blazor] - Refactor Rename of a property in a view model fails  #18753

@chassq

Description

@chassq

Describe the bug

When we attempt to refactor-> rename a view model property that is referenced in a razor component the rename will fail due to something to do with the razor component temp file .g.cs.

To Reproduce

Try to refactor->rename a property in a view model or code behind file referenced by a razor component.

I attached a zip file with the ActivityLog errors. Also contain dotnet --info output

Further technical details

  • ASP.NET Core version - 3.1.101 ref in global.json
    ActivityLog.zip

  • The IDE = VS 2019 16.4.4

Metadata

Metadata

Assignees

Labels

✔️ Resolution: DuplicateResolved as a duplicate of another issueStatus: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions