Toolbelt.AspNetCore.Blazor.Minimum.Templates 7.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet new install Toolbelt.AspNetCore.Blazor.Minimum.Templates::7.0.1                
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 ASP.NET Core "Blazor Server" and "Blazor WebAssembly" application without JavaScript and CSS libraries.

Blazor is a framework for building interactive client-side web UI with C#. 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 application project, type dotnet new command with a short name of the template "blazorservermin".

> dotnet new blazorservermin

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

> dotnet new blazorwasmmin

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" or "net7.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.
-la, --layout If specified, enables shared layout for the Blazor app.
-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 -i ... command, you will see these project templates in your Visual Studio's "Create new project" dialog.

fig.3

When you proceed with the create a new project with the project template "Blazor Server App (minimal)" or "Blazor WebAssembly 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 new .NET 7 empty template?

  • .NET 6.0 support
  • Rich initial loading page indicator for Blazor WebAssembly. (The normal project template of Blazor WebAssembly on .NET 7 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 new .NET 7 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 83 11/12/2024
9.0.100-rc.2 51 10/8/2024
9.0.100-rc.1 51 9/10/2024
9.0.100-preview.7.3 49 8/31/2024
9.0.100-preview.7.2 51 8/31/2024
9.0.100-preview.7.1 112 8/14/2024
9.0.100-preview.7 63 8/14/2024
9.0.100-preview.6 56 7/9/2024
9.0.100-preview.4 58 6/5/2024
9.0.100-preview.3 62 4/18/2024
8.0.403 158 10/9/2024
8.0.400.1 189 8/31/2024
8.0.400 156 8/14/2024
8.0.303 170 7/9/2024
8.0.301 218 6/5/2024
8.0.204 233 4/18/2024
8.0.202 715 3/13/2024
8.0.200.1 1,084 2/23/2024
8.0.200 911 2/14/2024
8.0.101.1 1,737 1/9/2024
8.0.101 1,155 1/2/2024
8.0.100 1,019 12/29/2023
8.0.0 1,746 12/2/2023
8.0.0-rc.2.23480.2 1,305 10/11/2023
8.0.0-rc.1.23421.29.2 79 9/16/2023
7.0.11 1,258 9/14/2023
7.0.1 2,145 12/13/2022
7.0.0 1,605 11/7/2022
7.0.0-rc.2.22476.2 112 10/12/2022
7.0.0-rc.1.22427.2 133 9/15/2022
7.0.0-preview.7.22376.6 109 9/13/2022
6.0.10 1,588 10/12/2022
6.0.8.2 1,624 9/13/2022
6.0.8.1 1,408 9/10/2022
6.0.8 1,604 9/10/2022
6.0.0 1,623 11/11/2021
6.0.0-rc.2 151 10/13/2021
6.0.0-rc.1 170 9/18/2021
6.0.0-preview.7 342 8/11/2021
6.0.0-preview.5 177 6/18/2021
6.0.0-preview.4 169 5/26/2021
6.0.0-preview.3 185 5/15/2021
5.0.6 3,452 5/15/2021
5.0.4 1,630 3/14/2021
5.0.3 1,757 2/14/2021
5.0.2 1,649 1/13/2021
5.0.0 1,709 11/10/2020
5.0.0-rc.2.20475.17 230 10/17/2020
5.0.0-rc.1.20451.17 323 9/16/2020
5.0.0-preview.8.20414.8 255 8/26/2020
3.2.1 1,795 7/23/2020
3.2.0 1,784 5/19/2020
3.2.0-rc1.20223.4 296 4/30/2020
3.2.0-preview5.20216.8 263 4/24/2020
3.2.0-preview4.20210.8 273 4/17/2020
3.2.0-preview3.20168.3 292 3/28/2020
3.2.0-preview2.20160.5 267 3/11/2020
3.2.0-preview1.20073.1 319 1/29/2020
3.1.0-preview4.19579.2 340 12/4/2019
3.1.0-preview3.19555.2 263 11/21/2019
3.1.0-preview2.19528.8.2 269 11/6/2019
3.0.0-preview9.19465.2 306 9/24/2019
3.0.0-preview9.19457.4 282 9/17/2019
3.0.0-preview9.19424.4.3 282 9/9/2019
3.0.0-preview9.19424.4.1 268 9/6/2019
3.0.0-preview9.19424.4 269 9/5/2019
3.0.0-preview8.19405.7 310 8/16/2019
3.0.0-preview7.19365.7 307 7/25/2019
3.0.0-preview6.19307.2 332 6/14/2019
3.0.0-preview5-19227-01 1,562 5/8/2019
3.0.0-preview4-19216-03b 1,774 4/22/2019
0.9.0-preview3-19154-02 1,763 3/8/2019
0.8.0-preview-19104-04 1,950 2/7/2019
0.7.0 2,240 11/16/2018
0.6.0.1 2,175 10/3/2018
0.6.0 2,004 10/3/2018
0.5.1 2,512 7/27/2018
0.5.0 2,174 7/27/2018
0.4.0 2,317 7/20/2018