Ok. I made a brand new application with MSSQL db scaffolding and let RBS make some CRUD tables just to have an example. Application is made in one step. No afterwards editing.
First that I noticed is from RB4VS, although the application is running with no issue after compiling in VS when I want to edit any screen Design time build failed.
E:\projekti\TestBuild\Components\Pages\Konto.razor.cs(63,33): error CS0311: The type 'NewAppNET9.Components.Pages.EditKonto' cannot be used as type parameter 'T' in the generic type or method 'DialogService.OpenAsync<T>(string, Dictionary<string, object?>?, DialogOptions?)'. There is no implicit reference conversion from 'NewAppNET9.Components.Pages.EditKonto' to 'Microsoft.AspNetCore.Components.IComponent'.
E:\projekti\TestBuild\Components\Pages\Partneri.razor.cs(63,33): error CS0311: The type 'NewAppNET9.Components.Pages.EditPartneri' cannot be used as type parameter 'T' in the generic type or method 'DialogService.OpenAsync<T>(string, Dictionary<string, object?>?, DialogOptions?)'. There is no implicit reference conversion from 'NewAppNET9.Components.Pages.EditPartneri' to 'Microsoft.AspNetCore.Components.IComponent'.
Second, when I touch this method, just make extra line after curly bracket
protected override async Task OnInitializedAsync()
{
kontoCollection = await ErpBoxService.GetKonto(new Query { Filter = $@"i => i.KonId.Contains(@0) || i.Naziv.Contains(@0) || i.Aop.Contains(@0) || i.K_D_O.Contains(@0)", FilterParameters = new object[] { search }, Expand = "Valuta" });
}
I receive following errors
:\projekti\TestBuild\Components\Pages\AddPartneri.razor.cs(35,39): error CS0115: 'AddPartneri.OnInitializedAsync()': no suitable method found to override
E:\projekti\TestBuild\Components\Pages\AddKursevi.razor.cs(35,39): error CS0115: 'AddKursevi.OnInitializedAsync()': no suitable method found to override
E:\projekti\TestBuild\Components\Pages\EditKonto.razor.cs(38,39): error CS0115: 'EditKonto.OnInitializedAsync()': no suitable method found to override
E:\projekti\TestBuild\Components\Pages\EditKursevi.razor.cs(38,39): error CS0115: 'EditKursevi.OnInitializedAsync()': no suitable method found to override
E:\projekti\TestBuild\Components\Pages\EditPartneri.razor.cs(38,39): error CS0115: 'EditPartneri.OnInitializedAsync()': no suitable method found to override
E:\projekti\TestBuild\Components\Pages\AddKonto.razor.cs(35,39): error CS0115: 'AddKonto.OnInitializedAsync()': no suitable method found to override
E:\projekti\TestBuild\Components\Pages\Kursevi.razor.cs(50,39): error CS0115: 'Kursevi.OnInitializedAsync()': no suitable method found to override
E:\projekti\TestBuild\Components\Pages\Konto.razor.cs(50,39): error CS0115: 'Konto.OnInitializedAsync()': no suitable method found to override
E:\projekti\TestBuild\Components\Pages\Partneri.razor.cs(50,39): error CS0115: 'Partneri.OnInitializedAsync()': no suitable method found to override
E:\projekti\TestBuild\Components\Pages\Partneri.razor.cs(57,33): error CS0311: The type 'NewAppNET9.Components.Pages.AddPartneri' cannot be used as type parameter 'T' in the generic type or method 'DialogService.OpenAsync<T>(string, Dictionary<string, object?>?, DialogOptions?)'. There is no implicit reference conversion from 'NewAppNET9.Components.Pages.AddPartneri' to 'Microsoft.AspNetCore.Components.IComponent'.
E:\projekti\TestBuild\Components\Pages\Kursevi.razor.cs(57,33): error CS0311: The type 'NewAppNET9.Components.Pages.AddKursevi' cannot be used as type parameter 'T' in the generic type or method 'DialogService.OpenAsync<T>(string, Dictionary<string, object?>?, DialogOptions?)'. There is no implicit reference conversion from 'NewAppNET9.Components.Pages.AddKursevi' to 'Microsoft.AspNetCore.Components.IComponent'.
E:\projekti\TestBuild\Components\Pages\Konto.razor.cs(58,33): error CS0311: The type 'NewAppNET9.Components.Pages.AddKonto' cannot be used as type parameter 'T' in the generic type or method 'DialogService.OpenAsync<T>(string, Dictionary<string, object?>?, DialogOptions?)'. There is no implicit reference conversion from 'NewAppNET9.Components.Pages.AddKonto' to 'Microsoft.AspNetCore.Components.IComponent'.
E:\projekti\TestBuild\Components\Pages\Partneri.razor.cs(63,33): error CS0311: The type 'NewAppNET9.Components.Pages.EditPartneri' cannot be used as type parameter 'T' in the generic type or method 'DialogService.OpenAsync<T>(string, Dictionary<string, object?>?, DialogOptions?)'. There is no implicit reference conversion from 'NewAppNET9.Components.Pages.EditPartneri' to 'Microsoft.AspNetCore.Components.IComponent'.
E:\projekti\TestBuild\Components\Pages\Konto.razor.cs(64,33): error CS0311: The type 'NewAppNET9.Components.Pages.EditKonto' cannot be used as type parameter 'T' in the generic type or method 'DialogService.OpenAsync<T>(string, Dictionary<string, object?>?, DialogOptions?)'. There is no implicit reference conversion from 'NewAppNET9.Components.Pages.EditKonto' to 'Microsoft.AspNetCore.Components.IComponent'.
E:\projekti\TestBuild\Components\Pages\Kursevi.razor.cs(63,33): error CS0311: The type 'NewAppNET9.Components.Pages.EditKursevi' cannot be used as type parameter 'T' in the generic type or method 'DialogService.OpenAsync<T>(string, Dictionary<string, object?>?, DialogOptions?)'. There is no implicit reference conversion from 'NewAppNET9.Components.Pages.EditKursevi' to 'Microsoft.AspNetCore.Components.IComponent'.
E:\projekti\TestBuild\Program.cs(43,24): error CS0246: The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)
So, yes I can confirm this error in a brand new application.