.Net Core
2022-W20
How to Do Web Forms in VS 2022
Microsoft last week set the record straight that Web Forms, part of ASP.NET from the old .NET Framework, isn't going away in Visual Studio 2022, though it recommends Blazor as a .NET 6 alternative.
That news came in the announcement of Visual Studio 2022 17.2:
"In the initial release of Visual Studio 2022 we introduced a new capability for those working with Web Forms applications and the designer. Web Live Preview enables your running app to be the design surface and provides code synchronization across source and web surface to help you navigate directly to the code file for the element you are editing.
After continued studies of developers with Web Forms apps, we have improved the experiences even more in this release. We have also worked with several ASP.NET control vendors to ensure their support in this new designer. If you are working in Web Forms, please switch to this feature using Tools > Options > Web Forms Designer options menu and continue to give us feedback!
In response to a comment questioning Web Forms support, Microsoft said: "Web Forms is NOT deprecated, the framework support is limited to critical updates, but all ASP.NET full .NET Framework projects are fully supported. While we are not investing in the Web Forms framework, we still need to ensure that Web Forms developers can successfully develop their apps in Visual Studio."
Last Reviewed : Never!