Everybody seems to suggest that it's already available, but I cannot for the life of me figure out how to get System.Span<T>
.
The documentation says ".Net Core 2.0", and this post from Mads Torgerson suggests that it shipped with VS 15.5, and we're up to VS 15.5.2, so it must be public for somebody. But I'm working on a mac, and using dotnet core to build my project.
dotnet --version
reports 2.1.2
. My project is super simple:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
</Project>
And yet, for all I do, I can't reference System.Span<T>
. What am I missing?