Contrib.Bcl.Ranges 1.0.0

.NET Standard 2.0 .NET Framework 4.6.1
dotnet add package Contrib.Bcl.Ranges --version 1.0.0
NuGet\Install-Package Contrib.Bcl.Ranges -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="Contrib.Bcl.Ranges" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Contrib.Bcl.Ranges --version 1.0.0
#r "nuget: Contrib.Bcl.Ranges, 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.
// Install Contrib.Bcl.Ranges as a Cake Addin
#addin nuget:?package=Contrib.Bcl.Ranges&version=1.0.0

// Install Contrib.Bcl.Ranges as a Cake Tool
#tool nuget:?package=Contrib.Bcl.Ranges&version=1.0.0


This package polyfills the types required for the C# 8.0 feature Ranges on targets lower than netcoreapp3.0 and netstandard2.1. This includes:

  • .NET Framework - starting from net461
  • .NET Standard 2.0 Compatible Runtimes - this includes .NET Core 2.x


Add this to your csproj file:

<PackageReference Include="Contrib.Bcl.Ranges" Version="1.0.0-preview8.19405.3" />

and add this to the PropertyGroup:


Now we can start using this handy new language feature 😀

Console.WriteLine("Hello world!"[6..^1]); // world
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 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
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.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Contrib.Bcl.Ranges:

Package Downloads
OpenMod.Core The ID prefix of this package has been reserved for one of the owners of this package by

Core service implementations for OpenMod


Library for processing of chemistry related files (aiming at spectroscopy and structural files)


Library for simple event sourcing


Library for simple event sourcing

Daf.Core.Sdk The ID prefix of this package has been reserved for one of the owners of this package by

SDK for Daf.Core plugins.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Contrib.Bcl.Ranges:

Repository Stars
OpenMod .NET Plugin Framework
Version Downloads Last updated
1.0.0 22,549 7/1/2020

updated nuget dependencies