VijayAnand.BlazorTemplates 3.2.0-preview.1

Prefix Reserved
This is a prerelease version of VijayAnand.BlazorTemplates.
This package has a SemVer 2.0.0 package version: 3.2.0-preview.1+sha.44da3f3.
There is a newer version of this package available.
See the version list below for details.
dotnet new install VijayAnand.BlazorTemplates::3.2.0-preview.1                
This package contains a .NET Template Package you can call from the shell/command line.

Blazor desktop project template

A project template for hosting the Blazor component in the Windows Forms and WPF desktop application.

To install the template package:

dotnet new install VijayAnand.BlazorTemplates

To update the template package:

dotnet new update --check-only
dotnet new update

To make use of the template:

By default, this creates a solution that targets the latest stable version, .NET 7 as of now.

For WinForms:

dotnet new winforms-blazor

For WPF:

dotnet new wpf-blazor

To target .NET 6 / .NET 8, pass the corresponding value (net6.0 / net8.0) to the framework (--framework | -f) parameter, example shown below.

dotnet new winforms-blazor -f net8.0
dotnet new wpf-blazor -f net8.0

To uninstall the template package:

dotnet new uninstall VijayAnand.BlazorTemplates
  • .NETStandard 2.0

    • 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
4.4.0 28 9/17/2024
4.3.0 51 8/20/2024
4.2.0 69 6/24/2024
4.1.0 98 5/28/2024
4.0.0 987 2/15/2024
3.6.1 731 1/18/2024
3.6.0 239 1/11/2024
3.5.0 1,545 11/14/2023
3.5.0-preview.1 683 10/19/2023
3.4.0 253 10/12/2023
3.3.0 111 9/14/2023
3.2.4 109 8/14/2023
3.2.3 116 7/16/2023
3.2.2 110 6/14/2023
3.2.1 100 5/19/2023
3.2.0 133 4/12/2023
3.2.0-preview.2 85 4/4/2023
3.2.0-preview.1 90 4/1/2023
3.1.0 114 3/27/2023
3.0.3 103 3/25/2023
3.0.2 101 3/24/2023
3.0.1 100 3/15/2023
3.0.0 114 2/21/2023
2.2.0 1,144 12/16/2022
2.1.1 330 11/23/2022
2.1.0 365 11/8/2022
2.0.0 410 10/5/2022
1.2.0 570 6/14/2022
1.1.0 486 5/23/2022
1.0.14 468 5/12/2022
1.0.13 513 4/28/2022
1.0.12 475 4/18/2022
1.0.11 480 4/12/2022
1.0.10 465 3/18/2022
1.0.9 421 2/18/2022
1.0.8 455 2/17/2022
1.0.7 446 2/7/2022
1.0.6 405 12/17/2021
1.0.5 381 11/19/2021
1.0.4 306 11/12/2021
1.0.3 294 11/9/2021
1.0.2 390 10/15/2021
1.0.1 375 9/16/2021
1.0.0 799 8/18/2021

Join me on Developer Thoughts (https://egvijayanand.in/), an exclusive blog for articles on .NET MAUI and Blazor.

What's new in ver. 3.2.0-preview.1:
-----------------------------------
Template restructured to follow the same sample as other App Models.

v3.1.0:

1. Added the open-iconic artifacts to the solution

2. While targeting .NET 8, the StartPath property is set to load a Razor component other than the one defined with default route address of '/'

v3.0.3:

1. Added the option to allow for restore/build action on Windows projects on non-Windows platforms.

-ewt | --enable-windows-targeting

2. In Windows Forms solution, the Router component is renamed as Main.razor for better interop with other AppModels.

dotnet new winforms-blazor -ewt

dotnet new wpf-blazor -ewt

v3.0.2:

Added the option to skip creating a solution file.

-nsf | --no-solution-file - Default value is false

dotnet new winforms-blazor -nsf

dotnet new wpf-blazor -nsf

v3.0.1:

Templates updated for .NET 8 Preview 2.

v3.0.0:

Templates updated for .NET 8 Preview 1.

Supported values for target framework parameter, can be specified with --framework / -f

net6.0
net7.0 (the default value)
net8.0

Examples:

dotnet new winforms-blazor -f net8.0 -o BlazorWinForms1

dotnet new wpf-blazor -f net8.0 -o BlazorWpf1

v2.2.0:

Templates updated for .NET 7 service release.

The Blazor hybrid package version is updated as a wildcard so that the latest stable version will be pulled from the NuGet repository.

.NET 7 - 7.0.*

.NET 6 - 6.0.*

v2.1.1:

A little housekeeping to improve the reliability of the templates.

v2.1.0:

Templates updated for .NET 7 GA release.

Blazor desktop templates for Windows Forms and WPF.

Currently targeting .NET 6 / 7 and the corresponding .NET MAUI release.

A parameter named framework has been introduced that takes either net6.0 or net7.0 as its options (with net7.0 being the default value).

dotnet new winforms-blazor --framework net6.0

dotnet new winforms-blazor -f net7.0

dotnet new wpf-blazor --framework net6.0

dotnet new wpf-blazor -f net7.0

Unified template now also available as a VS extension.

https://marketplace.visualstudio.com/items?itemName=egvijayanand.blazor-desktop-templates

Take a look at this Blazor article for working with these templates:

https://egvijayanand.in/2021/11/13/net-maui-blazor/