This is a Visual Studio 2019 Preview 3 project template for creating Blazor v0.8.0 solutions that can be hosted either client or server side, the idea behind this is to have a convenient implementation that allows changing from hosting models easily.
This template implements both the client-side and server-side hoting models using the classic blazor ASP.Net Core Hosted Solution Structure:
- [solution_name].Client
- [solution_name].Server
- [solution_name].Shared
Select the [solution_name].Server project or set it as the default project doing so the application will run under server-side (ASP.NET Core Razor Components with SignalR) host model.
- Under this mode you can debug the Client C# code
- Server project points to Client's wwwroot folder, so no need of move it into Server project.
Select the [solution_name].Client project or set it as the default project doing so the application will run under client-side host model
- Under this mode you cannot debug the Client C# code, it will act as a static web site
Clone the repository or directly Download the template zip file and follow this instructions
- No WEB API Support in server project