Skip to content

Commit 6d0ab79

Browse files
committed
blocked compilation on .Net 9.
1 parent 7f17c15 commit 6d0ab79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/SpanExtensions.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
<PackageReadmeFile>README.md</PackageReadmeFile>
2828
<PackageIcon>icon.png</PackageIcon>
2929
</PropertyGroup>
30+
31+
<Target Name="BlokcCompilationDotNet9Onwards" BeforeTargets="Compile">
32+
<Error Condition="'$(TargetFramework)' == 'net9.0'" Text="Error: This project does not support versions past .NET 8. Please upgrade to the latest version of SpanExtensions.Net. Due to the introduction of the new variable-length Split methods in .Net 9, the rich set of Split extension methods provided by this package has been removed in favour of the new built-in versions. If you wish to continue using our rich set of methds over the new Split versions, they are still available under 'ReadOnlySpanExtensions.Split(...)' and 'SpanExtensions.Split(...)' respectively." />
33+
</Target>
3034

3135
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
3236
<DebugType>portable</DebugType>

0 commit comments

Comments
 (0)