Skip to content

Commit ba18978

Browse files
committed
Update all samples to .NET 9, fix warnings
1 parent 33f2ad7 commit ba18978

File tree

13 files changed

+19
-13
lines changed

13 files changed

+19
-13
lines changed

Diff for: samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

Diff for: samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

Diff for: samples/ComputeSharp.NativeLibrary.WinRT/ComputeSharp.NativeLibrary.WinRT.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
3+
<TargetFramework>net9.0-windows10.0.22621.0</TargetFramework>
44
<WindowsSdkPackageVersion>10.0.22621.57</WindowsSdkPackageVersion>
55
<Platforms>x64;ARM64</Platforms>
66
<RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers>

Diff for: samples/ComputeSharp.NativeLibrary/ComputeSharp.NativeLibrary.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
</PropertyGroup>
55

66
<!-- NativeAOT configuration -->

Diff for: samples/ComputeSharp.Sample.FSharp.Shaders/ComputeSharp.Sample.FSharp.Shaders.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
</PropertyGroup>
55

66
<ItemGroup>

Diff for: samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<LangVersion>9.0</LangVersion>
77
</PropertyGroup>
88

Diff for: samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

Diff for: samples/ComputeSharp.SwapChain.Cli/ComputeSharp.SwapChain.Cli.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
-->
99
<OutputType Condition="'$(CI_RUNNER_SAMPLES_INTEGRATION_TESTS)' == 'true'">Exe</OutputType>
1010
<OutputType Condition="'$(CI_RUNNER_SAMPLES_INTEGRATION_TESTS)' != 'true'">WinExe</OutputType>
11-
<TargetFramework>net8.0</TargetFramework>
11+
<TargetFramework>net9.0</TargetFramework>
1212
<Platforms>x64;ARM64</Platforms>
1313
<AssemblyName>computesharp.cli</AssemblyName>
1414

Diff for: samples/ComputeSharp.SwapChain.D2D1.Cli/ComputeSharp.SwapChain.D2D1.Cli.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<OutputType Condition="'$(CI_RUNNER_SAMPLES_INTEGRATION_TESTS)' == 'true'">Exe</OutputType>
44
<OutputType Condition="'$(CI_RUNNER_SAMPLES_INTEGRATION_TESTS)' != 'true'">WinExe</OutputType>
5-
<TargetFramework>net8.0-windows10.0.22621</TargetFramework>
5+
<TargetFramework>net9.0-windows10.0.22621</TargetFramework>
66
<WindowsSdkPackageVersion>10.0.22621.57</WindowsSdkPackageVersion>
77
<ApplicationManifest>app.manifest</ApplicationManifest>
88
<Platforms>x64;ARM64</Platforms>

Diff for: samples/ComputeSharp.SwapChain.D2D1.Uwp/ComputeSharp.SwapChain.D2D1.Uwp.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>WinExe</OutputType>
4-
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
4+
<TargetFramework>net9.0-windows10.0.22621.0</TargetFramework>
55
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
66
<WindowsSdkPackageVersion>10.0.22621.57</WindowsSdkPackageVersion>
77
<UseUwp>true</UseUwp>

Diff for: samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>WinExe</OutputType>
4-
<TargetFramework>net8.0-windows10.0.26100.0</TargetFramework>
4+
<TargetFramework>net9.0-windows10.0.26100.0</TargetFramework>
55
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
66
<WindowsSdkPackageVersion>10.0.26100.57</WindowsSdkPackageVersion>
77
<UseUwp>true</UseUwp>

Diff for: samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>WinExe</OutputType>
4-
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
4+
<TargetFramework>net9.0-windows10.0.22621.0</TargetFramework>
55
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
66
<WindowsSdkPackageVersion>10.0.22621.57</WindowsSdkPackageVersion>
77
<ApplicationManifest>app.manifest</ApplicationManifest>
@@ -11,6 +11,12 @@
1111
<UseWinUI>true</UseWinUI>
1212
<EnableMsixTooling>true</EnableMsixTooling>
1313

14+
<!--
15+
Temporary workaround for the XAML compiler generating 'RuntimeHelpers.RunClassConstructor' stubs for 'Nullable<T>' types.
16+
This has been fixed already (see: https://github.com/dotnet/runtime/issues/106939). XAML compiler update coming soon too.
17+
-->
18+
<NoWarn>$(NoWarn);IL2059</NoWarn>
19+
1420
<!--
1521
WinUI 3 doesn't need support for 'INotifyPropertyChanging', so we can disable it.
1622
This avoids all generated code for it and provides a small performance improvement.

Diff for: samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Platforms>x64;ARM64</Platforms>
66
</PropertyGroup>
77

0 commit comments

Comments
 (0)