VS2022 "Extract block to code behind" is not moving code
markcooper
96
Reputation points
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;

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | ASP.NET | ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
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.
Sign in to answer