ByteSize 2.1.1

.NET 5.0 .NET Standard 1.0 .NET Framework 4.5
dotnet add package ByteSize --version 2.1.1
NuGet\Install-Package ByteSize -Version 2.1.1
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="ByteSize" Version="2.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ByteSize --version 2.1.1
#r "nuget: ByteSize, 2.1.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ByteSize as a Cake Addin
#addin nuget:?package=ByteSize&version=2.1.1

// Install ByteSize as a Cake Tool
#tool nuget:?package=ByteSize&version=2.1.1

ByteSize is a utility class that makes byte size representation in code easier by removing ambiguity of the value being represented. ByteSize is to bytes what System.TimeSpan is to time.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.0 netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Windows Phone wp8 wp81 wpa81
Windows Store netcore netcore45 netcore451
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 1.0

  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net5.0

    • No dependencies.

NuGet packages (13)

Showing the top 5 NuGet packages that depend on ByteSize:

Package Downloads

Application Component for the Alliance Business Suite.


Package Description


A fluid, seamless middleware.


Shared functions and models for the HASS.Agent platform.


Helpers for Statiq

GitHub repositories (19)

Showing the top 5 popular GitHub repositories that depend on ByteSize:

Repository Stars
Building the best file manager experience for Windows
WOA Deployer for Raspberry Pi
An app that uses white noise, nature sounds, and focus features to boost your productivity.
This repository was deprecated, use:
PixiEditor is a lightweight pixel art editor made with .NET 7
Version Downloads Last updated
2.1.1 957,689 11/6/2021
2.1.0 2,076,641 9/3/2021
2.0.0 909,036 1/14/2020
1.3.0 522,000 1/22/2017
1.2.5 1,148 1/21/2017
1.2.4 3,150 11/25/2016
1.2.3 5,721 11/10/2016
1.2.2 1,554 10/28/2016
1.2.1 16,758 7/23/2016
1.2.0 2,181 6/18/2016
1.1.3 1,472 6/18/2016
1.1.2 3,090 3/22/2016
1.1.1 2,592 12/13/2015
1.1.0 17,510 8/20/2015
1.0.0 4,880 5/30/2015

- Add documentation
- Fix potential System.NullReferenceException in the ToString() methods

View all release notes at