Build problem

I have a solution that builds without errors using VS 2022.
When I try and use RBS for VS, I get the following errors:

.../Client/Pages/AddDiagnosis.razor.cs(35,39): error CS0115: 'AddDiagnosis.OnInitializedAsync()': no suitable method found to override
.../Client/Pages/AddPatient.razor.cs(35,39): error CS0115: 'AddPatient.OnInitializedAsync()': no suitable method found to override
.../Client/Pages/AddTest.razor.cs(35,39): error CS0115: 'AddTest.OnInitializedAsync()': no suitable method found to override
.../Client/Pages/AddMedication.razor.cs(35,39): error CS0115: 'AddMedication.OnInitializedAsync()': no suitable method found to override
.../Client/Pages/AddTreatment.razor.cs(35,39): error CS0115: 'AddTreatment.OnInitializedAsync()': no suitable method found to override
.../Client/Pages/AddHealthcareProvider.razor.cs(35,39): error CS0115: 'AddHealthcareProvider.OnInitializedAsync()': no suitable method found to override
.../Client/Pages/AddVisit.razor.cs(35,39): error CS0115: 'AddVisit.OnInitializedAsync()': no suitable method found to override
.../Client/Pages/EditHealthcareProvider.razor.cs(38,39): error CS0115: 'EditHealthcareProvider.OnInitializedAsync()': no suitable method found to override
.../Client/Pages/EditDiagnosis.razor.cs(38,39): error CS0115: 'EditDiagnosis.OnInitializedAsync()': no suitable method found to override
.../Client/Pages/EditMedication.razor.cs(38,39): error CS0115: 'EditMedication.OnInitializedAsync()': no suitable method found to override
.../Client/Pages/EditTest.razor.cs(38,39): error CS0115: 'EditTest.OnInitializedAsync()': no suitable method found to override
.../Client/Pages/EditPatient.razor.cs(38,39): error CS0115: 'EditPatient.OnInitializedAsync()': no suitable method found to override
.../Client/Pages/EditTreatment.razor.cs(38,39): error CS0115: 'EditTreatment.OnInitializedAsync()': no suitable method found to override
.../Client/Pages/EditVisit.razor.cs(38,39): error CS0115: 'EditVisit.OnInitializedAsync()': no suitable method found to override

.../Server/Program.cs(8,23): error CS0234: The type or namespace name 'Components' does not exist in the namespace 'Registry.Server' (are you missing an assembly reference?)
.../Server/Program.cs(54,24): error CS0246: The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)
.../Server/Program.cs(54,149): error CS0234: The type or namespace name '_Imports' does not exist in the namespace 'Registry.Client' (are you missing an assembly reference?)

Sorry if this has been answered previously - I tried to search for a answer.

Thanks,

John

This would happen if you have installed a preview version of the .NET framework or Visual Studio 2022. Check here for further info: Troubleshooting | Radzen Blazor Studio

Hi, finally got it working - I had to add a global.js to set the dotnet9 version.

This means you had probably VS 2022 preview installed. We would recommend sticking with the RTM version to avoid future problems.