Skip to content

Commit 56b28fc

Browse files
authored
net9.0
1 parent 9cc5ff2 commit 56b28fc

File tree

4 files changed

+42
-5
lines changed

4 files changed

+42
-5
lines changed

src/ImageSharp/ImageSharp.csproj

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,28 @@
1919
<PropertyGroup>
2020
<Nullable>enable</Nullable>
2121
<WarningsAsErrors>Nullable</WarningsAsErrors>
22-
<TargetFrameworks>net8.0</TargetFrameworks>
23-
<IsTrimmable>true</IsTrimmable>
2422
</PropertyGroup>
2523

2624
<PropertyGroup>
2725
<!--Bump to v4.0 prior to tagged release.-->
2826
<MinVerMinimumMajorMinor>4.0</MinVerMinimumMajorMinor>
2927
</PropertyGroup>
3028

29+
<Choose>
30+
<When Condition="$(SIXLABORS_TESTING_PREVIEW) == true">
31+
<PropertyGroup>
32+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
33+
<IsTrimmable>true</IsTrimmable>
34+
</PropertyGroup>
35+
</When>
36+
<Otherwise>
37+
<PropertyGroup>
38+
<TargetFrameworks>net8.0</TargetFrameworks>
39+
<IsTrimmable>true</IsTrimmable>
40+
</PropertyGroup>
41+
</Otherwise>
42+
</Choose>
43+
3144
<ItemGroup>
3245
<None Include="..\..\LICENSE" Pack="true" PackagePath="" />
3346
<None Include="..\..\shared-infrastructure\branding\icons\imagesharp\sixlabors.imagesharp.128.png" Pack="true" PackagePath="" />

tests/ImageSharp.Benchmarks/ImageSharp.Benchmarks.csproj

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33

44
<PropertyGroup>
5-
<TargetFrameworks>net8.0</TargetFrameworks>
65
<AssemblyName>ImageSharp.Benchmarks</AssemblyName>
76
<OutputType>Exe</OutputType>
87
<RootNamespace>SixLabors.ImageSharp.Benchmarks</RootNamespace>
@@ -21,6 +20,19 @@
2120
<NoWarn>CA1822</NoWarn>
2221
</PropertyGroup>
2322

23+
<Choose>
24+
<When Condition="$(SIXLABORS_TESTING_PREVIEW) == true">
25+
<PropertyGroup>
26+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
27+
</PropertyGroup>
28+
</When>
29+
<Otherwise>
30+
<PropertyGroup>
31+
<TargetFrameworks>net8.0</TargetFrameworks>
32+
</PropertyGroup>
33+
</Otherwise>
34+
</Choose>
35+
2436
<ItemGroup>
2537
<Compile Include="..\ImageSharp.Tests\TestImages.cs" Link="Tests\TestImages.cs" />
2638
<Compile Include="..\ImageSharp.Tests\TestUtilities\TestEnvironment.cs" Link="Tests\TestEnvironment.cs" />

tests/ImageSharp.Tests.ProfilingSandbox/ImageSharp.Tests.ProfilingSandbox.csproj

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33

44
<PropertyGroup>
5-
<TargetFrameworks>net8.0</TargetFrameworks>
65
<AssemblyName>ImageSharp.Tests.ProfilingSandbox</AssemblyName>
76
<Description>A cross-platform library for processing of image files written in C#</Description>
87
<OutputType>Exe</OutputType>
@@ -17,6 +16,19 @@
1716
<ValidateExecutableReferencesMatchSelfContained>false</ValidateExecutableReferencesMatchSelfContained>
1817
</PropertyGroup>
1918

19+
<Choose>
20+
<When Condition="$(SIXLABORS_TESTING_PREVIEW) == true">
21+
<PropertyGroup>
22+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
23+
</PropertyGroup>
24+
</When>
25+
<Otherwise>
26+
<PropertyGroup>
27+
<TargetFrameworks>net8.0</TargetFrameworks>
28+
</PropertyGroup>
29+
</Otherwise>
30+
</Choose>
31+
2032
<ItemGroup>
2133
<Compile Remove="..\ImageSharp.Tests\IO\LocalFileSystem.cs" />
2234
<Compile Include="..\ImageSharp.Benchmarks\LoadResizeSave\LoadResizeSaveStressRunner.cs" Link="LoadResizeSaveStressRunner.cs" />

tests/ImageSharp.Tests/ImageSharp.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</Otherwise>
2323
</Choose>
2424

25-
<ItemGroup>
25+
<ItemGroup>
2626
<InternalsVisibleTo Include="ImageSharp.Tests.ProfilingSandbox" Key="$(SixLaborsPublicKey)" />
2727
</ItemGroup>
2828

0 commit comments

Comments
 (0)