Toolbelt.AspNetCore.Blazor.Minimum.Templates 8.0.202

There is a newer version of this package available.
See the version list below for details.
dotnet new install Toolbelt.AspNetCore.Blazor.Minimum.Templates::8.0.202
This package contains a .NET Template Package you can call from the shell/command line.

Blazor Minimum Project Templates NuGet Package

Summary

This is a project templates package for "Blazor Server", "Blazor WebAssembly", and Full Stack "Blazor Web" application without JavaScript and CSS libraries.

Blazor is a framework for building full stack web apps by C#, without writing a line of JavaScript. Learn More...

The Blazor application project created by these templates contains only the minimum necessary files, like this:

fig.1

When you run this project, you will see the following page on a web browser.

fig.2

System requirement

How to install

If you use .NET SDK ver.7 or later, please enter the following command to install the project templates.

> dotnet new install Toolbelt.AspNetCore.Blazor.Minimum.Templates

If you use .NET SDK ver.6, please enter the following command to install the project templates.

> dotnet new -i Toolbelt.AspNetCore.Blazor.Minimum.Templates

How to use

.NET CLI

If you want to create a new Blazor Server app project, type the dotnet new command with the short name of the template "blazorservermin".

> dotnet new blazorservermin

If you want to create a new Blazor WebAssembly app project which standalone edition, type the dotnet new command with the short name of the template "blazorwasmmin".

> dotnet new blazorwasmmin

If you want to create a new Blazor Web app project that is a new model since .NET 8, type the dotnet new command with the short name of the template "blazormin".

> dotnet new blazormin

These commands create a new project in the current directory, and the project name will be the same as the current directory name.

See also: "dotnet new command - .NET Core CLI" | Microsoft Docs

You can see all the options for these project templates with the --help option, like below:

> dotnet new blazorwasmmin --help
option description
--no-restore If specified, skips the automatic restore of the project on create.
-f, --framework {net6.0, net7.0, or net8.0} The target framework for the project.
--no-https Whether to turn off HTTPS.
-ho, --hosted [Blazor WebAssembly Only] If specified, includes an ASP.NET Core host for the Blazor WebAssembly app.
-r, --routing If specified, enables routing for the Blazor app.
--layout If specified, enables shared layout for the Blazor app.
-int, --interactivity {none, server, webassembly, or auto} [Blazor Web app only] Chooses which interactive render mode to use for interactive components. (The default value is none)
-s, --solution [.NET CLI only] If specified, adds a solution file for the standalone Blazor WebAssembly or Blazor Server app.

For example, if you want an ASP.NET Core hosted Blazor WebAssembly app project, please specify the --hosted switch.

> dotnet new blazorwasmmin --hosted

Visual Studio

Once you've installed this project template with the dotnet new install ... command, you will see these project templates in your Visual Studio's "Create new project" dialog.

fig.3

When you proceed with creating a new project with the project template "Blazor Server App (minimal)", "Blazor WebAssembly App (minimal)", or "Blazor Web App (minimal)", you can see the "Additional Information" dialog, and you can configure some options for the Blazor app you are creating.

fig.4

What is the difference between the empty template built-in .NET SDK?

  • .NET 6.0 support
  • Rich initial loading page indicator for Blazor WebAssembly. (The normal project template of Blazor WebAssembly on .NET SDK has an excellent progress indication loading page. but the empty project template only shows "Loading..." static text at the top left corner of the page.)
  • No routing by default. (You can also enable routing support explicitly)
  • No shared layout by default. (You can also enable shared layout explicitly)

In short, this "minimal" template will generate a much simpler project structure and files (by default, it doesn't even have routing code and shared layout code) than the Blazor empty template.

License

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
9.0.100-preview.3 46 4/18/2024
8.0.204 94 4/18/2024
8.0.202 685 3/13/2024
8.0.200.1 1,051 2/23/2024
8.0.200 882 2/14/2024
8.0.101.1 1,711 1/9/2024
8.0.101 1,131 1/2/2024
8.0.100 984 12/29/2023
8.0.0 1,693 12/2/2023
8.0.0-rc.2.23480.2 1,285 10/11/2023
8.0.0-rc.1.23421.29.2 65 9/16/2023
7.0.11 1,227 9/14/2023
7.0.1 2,121 12/13/2022
7.0.0 1,581 11/7/2022
7.0.0-rc.2.22476.2 99 10/12/2022
7.0.0-rc.1.22427.2 121 9/15/2022
7.0.0-preview.7.22376.6 98 9/13/2022
6.0.10 1,559 10/12/2022
6.0.8.2 1,596 9/13/2022
6.0.8.1 1,388 9/10/2022
6.0.8 1,559 9/10/2022
6.0.0 1,596 11/11/2021
6.0.0-rc.2 140 10/13/2021
6.0.0-rc.1 156 9/18/2021
6.0.0-preview.7 330 8/11/2021
6.0.0-preview.5 162 6/18/2021
6.0.0-preview.4 159 5/26/2021
6.0.0-preview.3 167 5/15/2021
5.0.6 3,405 5/15/2021
5.0.4 1,603 3/14/2021
5.0.3 1,725 2/14/2021
5.0.2 1,622 1/13/2021
5.0.0 1,678 11/10/2020
5.0.0-rc.2.20475.17 220 10/17/2020
5.0.0-rc.1.20451.17 306 9/16/2020
5.0.0-preview.8.20414.8 240 8/26/2020
3.2.1 1,762 7/23/2020
3.2.0 1,747 5/19/2020
3.2.0-rc1.20223.4 279 4/30/2020
3.2.0-preview5.20216.8 253 4/24/2020
3.2.0-preview4.20210.8 264 4/17/2020
3.2.0-preview3.20168.3 277 3/28/2020
3.2.0-preview2.20160.5 259 3/11/2020
3.2.0-preview1.20073.1 311 1/29/2020
3.1.0-preview4.19579.2 322 12/4/2019
3.1.0-preview3.19555.2 254 11/21/2019
3.1.0-preview2.19528.8.2 254 11/6/2019
3.0.0-preview9.19465.2 291 9/24/2019
3.0.0-preview9.19457.4 269 9/17/2019
3.0.0-preview9.19424.4.3 275 9/9/2019
3.0.0-preview9.19424.4.1 259 9/6/2019
3.0.0-preview9.19424.4 260 9/5/2019
3.0.0-preview8.19405.7 295 8/16/2019
3.0.0-preview7.19365.7 299 7/25/2019
3.0.0-preview6.19307.2 322 6/14/2019
3.0.0-preview5-19227-01 1,539 5/8/2019
3.0.0-preview4-19216-03b 1,750 4/22/2019
0.9.0-preview3-19154-02 1,736 3/8/2019
0.8.0-preview-19104-04 1,922 2/7/2019
0.7.0 2,206 11/16/2018
0.6.0.1 2,140 10/3/2018
0.6.0 1,963 10/3/2018
0.5.1 2,479 7/27/2018
0.5.0 2,145 7/27/2018
0.4.0 2,285 7/20/2018

8.0.202
     - Update: Updated the referenced packages to 8.0.3, 7.0.17 and 6.0.28.
     
     To see all the change logs, please visit the following URL.
     - https://github.com/jsakamoto/BlazorMinimumTemplates/blob/master/RELEASE-NOTES.txt