Tried to create a new application and choose NET8 Web Application type. Application was generated but there are several errors that are related to duplicate files and declarations. Each declaration is in a separate folder, root, server, client. When I comment a few lines it compiles with other errors.
Severity | Code | Description | Project | File | Line | Suppression State |
---|---|---|---|---|---|---|
Error | CS1061 | 'RazorComponentsEndpointConventionBuilder' does not contain a definition for 'AddInteractiveWebAssemblyRenderMode' and no accessible extension method 'AddInteractiveWebAssemblyRenderMode' accepting a first argument of type 'RazorComponentsEndpointConventionBuilder' could be found (are you missing a using directive or an assembly reference?) | Employee | E:\RadzenApp\Employee\Server\Program.cs | 35 | Active |
Error | CS1061 | 'WebApplication' does not contain a definition for 'UseWebAssemblyDebugging' and no accessible extension method 'UseWebAssemblyDebugging' accepting a first argument of type 'WebApplication' could be found (are you missing a using directive or an assembly reference?) | Employee | E:\RadzenApp\Employee\Server\Program.cs | 19 | Active |
Error | CS1061 | 'IServerSideBlazorBuilder' does not contain a definition for 'AddInteractiveWebAssemblyComponents' and no accessible extension method 'AddInteractiveWebAssemblyComponents' accepting a first argument of type 'IServerSideBlazorBuilder' could be found (are you missing a using directive or an assembly reference?) | Employee | E:\RadzenApp\Employee\Server\Program.cs | 9 | Active |
Error | CS8802 | Only one compilation unit can have top-level statements. | Employee | E:\RadzenApp\Employee\Server\Program.cs | 4 | Active |
So, my question is: To use or not to use this type of application and if yes how? And when will it be useful by default?