1<Project Sdk="Microsoft.NET.Sdk"> 2 3 <PropertyGroup> 4 <TargetFrameworks>netstandard2.1;netstandard2.0;net46</TargetFrameworks> 5 <GenerateAssemblyInfo>false</GenerateAssemblyInfo> 6 </PropertyGroup> 7 8 <PropertyGroup Condition="'$(UNSAFE_BYTEBUFFER)' == 'true'"> 9 <DefineConstants>$(DefineConstants);UNSAFE_BYTEBUFFER</DefineConstants> 10 <AllowUnsafeBlocks>true</AllowUnsafeBlocks> 11 </PropertyGroup> 12 <PropertyGroup Condition="'$(BYTEBUFFER_NO_BOUNDS_CHECK)' == 'true'"> 13 <DefineConstants>$(DefineConstants);BYTEBUFFER_NO_BOUNDS_CHECK</DefineConstants> 14 </PropertyGroup> 15 <PropertyGroup Condition="'$(ENABLE_SPAN_T)' == 'true'"> 16 <DefineConstants>$(DefineConstants);ENABLE_SPAN_T</DefineConstants> 17 </PropertyGroup> 18 19 <ItemGroup Condition="('$(ENABLE_SPAN_T)' == 'true') And (('$(TargetFramework)' == 'netstandard2.0') Or ('$(TargetFramework)' == 'net46'))"> 20 <PackageReference Include="System.Memory" Version="4.5.4" /> 21 </ItemGroup> 22 23</Project> 24