Skip to content
dotnet cli template to create Bolero applications
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
content/application Version 0.4: add authentication Mar 22, 2019
.gitattributes Add editor config Nov 19, 2018
.gitignore Run build tests in local folder rather than temp Feb 12, 2019
Bolero.Template.sln Convert builder to netcore-based Paket Dec 4, 2018 Documentation moved to Mar 14, 2019
build.fsx Make template multipage with remoting, add --minimal empty page Mar 12, 2019
paket.lock Update to Bolero 0.2 Jan 22, 2019
paket.template Version 0.4: add authentication Mar 22, 2019

Bolero Simple Template

Build status

This template can be used as a base to create a Bolero application.

To learn more, you can check the documentation.


To get started, you need the following installed:

  • .NET Core SDK 2.1.403 or newer. Download it here.

Creating a project based on this template

To create a project based on this template, first install the template to your local dotnet:

dotnet new -i Bolero.Templates

Then, you can create a project like so:

dotnet new bolero-app -o YourAppName

This will create a project in a new folder named YourAppName.

Template options

You can use the following options to customize the project being created:

  • --minimal=true|false:

    If true, the created project is a minimal application skeleton with empty content.

    If false (the default), the created project includes Bolero features such as routed pages, HTML templates and remoting.

  • --server=true|false:

    If true (the default), the solution includes a Server project, which is an ASP.NET Core server that hosts the application.

    If false, the solution only contains the Client project that is compiled to WebAssembly.

    This is ignored if minimal=false, because the full-fledged project needs the server side for remoting.

  • --hotreload=true|false:

    Enable hot reloading for HTML templates.

    The default is true.

    This is ignored if server=false, because hot reloading requires a server side.

Using this template

Visual Studio Code or Visual Studio is recommended to edit this project.

To compile the project, you can run:

dotnet build

To run it:

dotnet run -p src/YourAppName.Server

# Or if you created the project with --minimal=true --server=false:
dotnet run -p src/YourAppName.Client

Project structure

  • src/YourAppName.Client is the project that gets compiled to WebAssembly, and contains your client-side code.

    • Startup.fs sets up Blazor to get the application started.

    • Main.fs contains the main body of the page.

  • src/YourAppName.Server is the host ASP.NET Core application, and contains your server-side code.

Learn more about Bolero

To learn more about Bolero, you can check the documentation.

You can’t perform that action at this time.