VS2022 "Extract block to code behind" is not moving code

markcooper 96 Reputation points
2021-11-26T13:02:43.49+00:00

When I use the "Extract block to code behind" feature for a razor component in a RCL the .razor.cs file gets created by the code is not moved. It remains in the .razor file and the *.razor.cs file is empty.

For example;
152908-2021-11-26-12-41-39.gif

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.