I'm trying out MAUI and I've ran into a weird bug. It won't let me add a new Page, every time i try to do so the InitializeComponent in the constructor gives me an error :
The name 'InitializeComponent' does not exist in the current context
I've added Microsoft.Maui.Controls in the C# code and in the XAML code.
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Does anyone know what to do here?


