Design time build failed

I started a new project from the wizard that comes with RB4VS. When I open the Index.razor page I get an Design time build failed.

..\RadzenBlazorApp\Program.cs(28,24): error CS0246: The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)

When I run the project it runs without any error.

I'm using:
Microsoft Visual Studio Community 2022 (64-bit) - Preview
Version 17.13.0 Preview 2.0

dotnet --list-sdks
6.0.428 [C:\Program Files\dotnet\sdk]
7.0.410 [C:\Program Files\dotnet\sdk]
8.0.100-rc.1.23463.5 [C:\Program Files\dotnet\sdk]
8.0.404 [C:\Program Files\dotnet\sdk]
9.0.101 [C:\Program Files\dotnet\sdk]
9.0.200-preview.0.24575.35 [C:\Program Files\dotnet\sdk]

We haven't tested with the preview and most probably it won't work.

Thank you for your response.
I've installed the Microsoft Visual Studio Community 2022 (64-bit) - Current

But now I can't use the trial key that was sent to me and I can't start another trial.

You can try with a different email.

Just to update.
Used as alias email to get a new key.
Had to uninstall the VS preview and all the SDK Preview to get it to work.
Its working now.

I have the same problem but I am using
Microsoft Visual Studio Professional 2022 (64-bit) - Current
Version 17.12.3

What should I do?

Radzen Blazor for Visual Studio won't work with a preview version of the .NET 9 SDK and Visual Studio. If you want to use it you have to install the release version of Visual Studio instead of the preview.

Not sure what you tell me.. I am using VS Professional 2022 not the Preview version.
It was helpful to make App.razor.cs. An error disappears but the designer does not work in both versions RBS and RBS4VS. Just have a blank window with no control whatsoever. Here is an example from RBS4VS

Then this is a totally different problem than the one discussed in this thread (which is about using a preview version of Visual Studio and the .NET SDK).

I suggest checking the troubleshooting article: Troubleshooting | Radzen Blazor Studio