The Guidelines Support Library (GSL) contains functions and types that are suggested for use by the C++ Core Guidelines maintained by the Standard C++ Foundation.

Additional Details

We no longer maintain the NuGet package for GSL library. From October 2016, we have been releasing the GSL using vcpkg.

You can download and install GSL using the vcpkg ( dependency manager:
git clone
cd vcpkg
./vcpkg integrate install
vcpkg install ms-gsl

The GSL port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please create an issue or pull request on the vcpkg repository.

Install-Package Microsoft.Gsl -Version
dotnet add package Microsoft.Gsl --version
<PackageReference Include="Microsoft.Gsl" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.Gsl --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Microsoft.Gsl:

Package Downloads
Tool to enforce the C++ Core Guidelines

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Microsoft.Gsl:

Repository Stars
Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications

Version History

Version Downloads Last updated 81,145 3/31/2016
0.1.2 668 3/31/2016
0.1.1 1,195 1/8/2016
0.0.1 2,297 12/1/2015