
I Let GitHub Copilot Build My Razor Pages UI (While Rewriting an Old .NET App)
I'm currently rewriting an old .NET Framework application using modern .NET and AI tools. In this part of the project, I experimented with letting GitHub Copilot inside Microsoft Visual Studio generate the entire user interface . The result was surprisingly good — with a few interesting lessons. First Attempt: Blazor My first thought was to use Blazor , since it’s one of the modern front-end options in ASP.NET Core . But after trying several quick experiments, Copilot consistently struggled to generate working Blazor projects . For now, Razor Pages turned out to be far easier for AI-assisted development. Architecture Before UI Before generating any UI, the application was already organized into separate projects: Domain – business logic Data Access – persistence Services – application layer Composition Root – dependency wiring This keeps the UI layer thin , which is ideal when working with AI tools. The UI project simply references the Services layer , while the rest of the logic lives
Continue reading on Dev.to Webdev
Opens in a new tab



