WebBundler.Core 1.0.0

dotnet add package WebBundler.Core --version 1.0.0
                    
NuGet\Install-Package WebBundler.Core -Version 1.0.0
                    
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="WebBundler.Core" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WebBundler.Core" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="WebBundler.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WebBundler.Core --version 1.0.0
                    
#r "nuget: WebBundler.Core, 1.0.0"
                    
#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.
#:package WebBundler.Core@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WebBundler.Core&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=WebBundler.Core&version=1.0.0
                    
Install as a Cake Tool

WebBundler

Build Status Last Commit Coverage Quality Gate Status Lines of Code Duplicated Lines (%) Bugs Vulnerabilities Reliability Rating Security Rating Maintainability Rating .NET Platform License

Lightweight bundling and minification for .NET web projects without JavaScript toolchains.

WebBundler is a simple, deterministic and CI-friendly asset bundling tool for .NET web applications. It helps bundle and minify CSS and JavaScript files without requiring Node.js, npm, Vite, Webpack, or other heavyweight frontend tooling.

Why WebBundler exists

Many .NET web projects still need a small, reliable asset pipeline:

  • concatenate a few CSS files
  • bundle JavaScript files in a known order
  • minify output during build
  • integrate cleanly with MSBuild and CI/CD
  • avoid introducing a full JavaScript toolchain for simple needs

WebBundler is built for that exact use case.

Goals

WebBundler aims to be:

  • lightweight
  • deterministic
  • CI-friendly
  • MSBuild-friendly
  • easy to configure
  • easy to maintain
  • independent from JavaScript package managers and frontend bundlers

Who it is for

WebBundler is a good fit for:

  • ASP.NET MVC projects
  • Razor-based web applications
  • legacy or hybrid .NET web projects
  • enterprise and intranet applications
  • teams that want straightforward CSS/JS bundling
  • teams that prefer .NET-native build integration
  • projects that do not want to introduce Node.js just for asset bundling

Who it is not for

WebBundler is not intended to replace modern frontend toolchains such as:

  • Vite
  • Webpack
  • Rollup
  • Parcel

It is not designed for:

  • frontend framework development workflows
  • hot module replacement
  • dev servers
  • advanced JavaScript transpilation pipelines
  • full SPA asset ecosystems

If your project is heavily frontend-driven, a dedicated JavaScript toolchain is probably a better fit.

Features

Current capabilities include:

  • CSS bundling
  • JavaScript bundling
  • minification
  • JSON configuration via bundleconfig.json
  • versioned JSON Schema for IDE completion
  • deterministic output
  • CLI usage
  • MSBuild integration
  • CI/CD support
  • wildcard/glob input support
  • configuration validation
  • check mode for CI
  • fingerprinting
  • manifest generation via manifestOutput
  • source maps for CSS and JavaScript via external sibling .map files
  • support for additional asset-related scenarios

Design principles

WebBundler follows a few key principles:

  1. CLI-first for automation and scripting
  2. MSBuild-first for .NET project integration
  3. Visual Studio friendly, but not IDE-dependent
  4. Deterministic behavior so local and CI outputs match
  5. Simple configuration and explicit behavior
  6. Maintainable architecture with clean separation of concerns

Installation

CLI

Install the tool from NuGet:

dotnet tool install --global WebBundler.Tool

Run it from the project root:

webbundler build --config bundleconfig.json
webbundler check --config bundleconfig.json
webbundler validate --config bundleconfig.json

MSBuild

Add the package to a web project:

<ItemGroup>
  <PackageReference Include="WebBundler.MSBuild" Version="1.0.0" PrivateAssets="all" />
</ItemGroup>

The build target looks for bundleconfig.json in the project directory by default and runs once per build or publish invocation.

Useful MSBuild properties:

  • WebBundlerConfigFile
  • WebBundlerEnabled
  • WebBundlerEnableFingerprinting
  • WebBundlerWriteOutputs

Usage

  • build writes bundled output files.
  • build writes bundled output files and any configured manifest.
  • validate checks configuration structure only.
  • check validates configuration and asset inputs without writing files.

Docs

See the docs above for examples and implementation details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on WebBundler.Core:

Package Downloads
WebBundler.Configuration

Lightweight bundling and minification for .NET web projects without JavaScript toolchains.

WebBundler.Fingerprinting

Lightweight bundling and minification for .NET web projects without JavaScript toolchains.

WebBundler.Minification

Lightweight bundling and minification for .NET web projects without JavaScript toolchains.

WebBundler.MSBuild

Lightweight bundling and minification for .NET web projects without JavaScript toolchains.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 130 4/28/2026