Blazor.Tools.BlazorBundler 3.1.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package Blazor.Tools.BlazorBundler --version 3.1.6                
NuGet\Install-Package Blazor.Tools.BlazorBundler -Version 3.1.6                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Blazor.Tools.BlazorBundler" Version="3.1.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Blazor.Tools.BlazorBundler --version 3.1.6                
#r "nuget: Blazor.Tools.BlazorBundler, 3.1.6"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Blazor.Tools.BlazorBundler as a Cake Addin
#addin nuget:?package=Blazor.Tools.BlazorBundler&version=3.1.6

// Install Blazor.Tools.BlazorBundler as a Cake Tool
#tool nuget:?package=Blazor.Tools.BlazorBundler&version=3.1.6                

BlazorBundler

BlazorBundler is a utility tool designed to simplify the process of bundling multiple packages, particularly for Blazor applications. This tool allows you to download and bundle essential files and dependencies, such as Bootstrap and Bootstrap Icons, to enhance your Blazor projects.

Version Information

  • Package Version: $packageVersion
  • Assembly Version: $assemblyVersion
  • File Version: $fileVersion

Features

  • Automated Package Bundling: Easily download and bundle multiple packages with a single command.
  • Bootstrap Integration: Seamlessly include Bootstrap and Bootstrap Icons in your Blazor projects.
  • Asynchronous Downloads: Efficiently download multiple files simultaneously for faster setup.
  • Bundle:
    • Blazor.Bootstrap version 1.11.1
    • Blazored.Typeahead version 4.7.0
    • Bogus version 35.6.0
    • Bootstrap Icons version 1.11.3
    • Dapper version 2.1.35
    • HtmlAgilityPack version 1.11.61
    • Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore version 8.0.6
    • Microsoft.AspNetCore.Identity.EntityFrameworkCore version 8.0.6
    • Microsoft.Build version 17.10.4
    • Microsoft.EntityFrameworkCore.SqlServer version 8.0.6
    • Microsoft.EntityFrameworkCore.Tools version 8.0.6
    • Microsoft.ML version 3.0.1
    • Microsoft.VisualStudio.Azure.Containers.Tools.Targets version 1.21.0
    • Newtonsoft.Json version 13.0.3

Installation

You can install BlazorBundler via NuGet Package Manager, Package Manager Console or from a terminal:

Nuget Package Manager

  • Search for Blazor.Tools.BlazorBundler in nuget.org and click Install.

Package Manager Console

Install-Package Blazor.Tools.BlazorBundler

Terminal console

dotnet add package Blazor.Tools.BlazorBundler

After-Install Setup Commands

Note: After installing the package, you have to manually run the Install-Pkgs module file to install required nuget packages. First replace the values of the $userProfileName and $targetPath variables.

  $userProfileName should contain your Windows UserProfile Name
  $sourcePath should not be changed
  $targetPath should contain the full path of your project file

Open PowerShell and run:

    $version = "$packageVersion"
    $userProfileName = "solom"
    $sourcePath = "C:\Users\$userProfileName\.nuget\packages\blazor.tools.blazorbundler\$version"
    $targetPath = "C:\repo\Blazor.Tools\Blazor.Tools\Blazor.Tools.csproj"
    Install-Pkgs -SourcePath $sourcePath -TargetProjectPath $targetPath

Setup your App.razor stylesheets and javascripts

Add these to your <head> section:

    <link rel="stylesheet" href="bootstrap/bootstrap.min.css" />
    <link rel="stylesheet" href="bundler/bootstrap-icons/font/bootstrap-icons.min.css" />
    <link rel="stylesheet" href="bundler/blazor-bootstrap/blazor.bootstrap.css" />
    <link rel="stylesheet" href="bundler/css/bundler.css" />
    
    
    <link rel="stylesheet" href="Blazor.Tools.styles.css" /> 

    <script src="bundler/blazored-typeahead/blazored-typeahead.js"></script>
    <script src="bundler/js/site.js"></script>
    
    
    <HeadOutlet @rendermode="@InteractiveServer" />

Add these to your <body> section:

    
    <Routes @rendermode="@InteractiveServer" />
    
    
    <script src="_framework/blazor.web.js"></script>

    
    <script src="bundler/js/bootstrap.bundle.min.js"></script>
    <script src="bundler/blazor-bootstrap/blazor.bootstrap.js"></script>

Add this to your Program.cs file:

builder.Services.AddBlazorBootstrap();

Uninstallation

First, uninstall the package from the Nuget Package Manager, Package Manager Console or from a terminal.

Nuget Package Manager

  • Search Blazor.Tools.BlazorBundler and uninstall it.

Package Manager Console

Uninstall-Package Blazor.Tools.BlazorBundler

Terminal console

dotnet remove package Blazor.Tools.BlazorBundler

Clean-up

Note: After uninstalling the package, you have to manually run the Uninstall module file to uninstall the packages. First replace the values of the $userProfileName and $targetPath variables.

  $projectPath should contain the path to your project folder
  $projectName should contain the name of your project

Open PowerShell and run:

    $projectPath = "C:\repo\Blazor.Tools\Blazor.Tools\"
    $projectName = "Blazor.Tools.csproj"
    Uninstall-Pkgs -ProjectPath  $projectPath -ProjectName $projectName

Change Logs

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.1.20 114 9/28/2024
3.1.19 135 9/27/2024
3.1.18 150 9/26/2024
3.1.17 86 9/25/2024
3.1.16 76 9/25/2024
3.1.15 78 9/25/2024
3.1.14 80 9/25/2024
3.1.13 70 9/25/2024
3.1.12 84 9/25/2024
3.1.11 75 9/25/2024
3.1.10 74 9/25/2024
3.1.9 111 9/24/2024
3.1.8 150 9/24/2024
3.1.7 126 9/24/2024
3.1.6 103 9/24/2024
3.1.5 126 9/24/2024