From 29260dc2a188a12443840781440a5f0246b51b88 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 18 Oct 2023 18:12:58 +0200 Subject: [PATCH 1/3] Switch all projects in solution to .NET 7 --- .github/workflows/dotnet.yml | 8 ++++---- .../ComputeSharp.Benchmark.csproj | 2 +- samples/ComputeSharp.Benchmark/Program.cs | 2 +- .../ComputeSharp.ImageProcessing.csproj | 2 +- .../ComputeSharp.Sample.FSharp.Shaders.csproj | 2 +- .../ComputeSharp.Sample.FSharp.fsproj | 2 +- .../ComputeSharp.Sample/ComputeSharp.Sample.csproj | 2 +- .../ComputeSharp.SwapChain.WinUI.csproj | 2 +- .../ComputeSharp.SwapChain.csproj | 2 +- src/ComputeSharp.Core/ComputeSharp.Core.csproj | 2 +- .../ComputeSharp.D2D1.WinUI.csproj | 2 +- src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj | 2 +- .../ComputeSharp.D3D12MemoryAllocator.csproj | 2 +- src/ComputeSharp.Dxc/ComputeSharp.Dxc.csproj | 2 +- src/ComputeSharp.Pix/ComputeSharp.Pix.csproj | 2 +- src/ComputeSharp.WinUI/ComputeSharp.WinUI.csproj | 2 +- src/ComputeSharp/ComputeSharp.csproj | 2 +- src/Directory.Build.targets | 4 ++-- ...Sharp.D2D1.Tests.AssemblyLevelAttributes.csproj | 2 +- ...ComputeSharp.D2D1.Tests.SourceGenerators.csproj | 2 +- ...gPixelShaderDescriptorOnPixelShaderCodeFixer.cs | 14 +++++++------- .../ComputeSharp.D2D1.Tests.csproj | 2 +- .../ComputeSharp.D2D1.WinUI.Tests.csproj | 2 +- .../ComputeSharp.Tests.DeviceLost.csproj | 2 +- ...uteSharp.Tests.DisableDynamicCompilation.csproj | 2 +- .../ComputeSharp.Tests.GlobalStatements.csproj | 2 +- .../ComputeSharp.Tests.Internals.csproj | 2 +- ...mputeSharp.Tests.NativeLibrariesResolver.csproj | 2 +- .../ComputeSharp.Tests.SourceGenerators.csproj | 2 +- tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj | 2 +- 30 files changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index d8f2a7d9..22c7c85e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -149,7 +149,7 @@ jobs: run: > $vs_path = vswhere -latest -products * -requires Microsoft.VisualStudio.Workload.ManagedDesktop -requiresAny -property installationPath; $vstest_path = join-path $vs_path 'Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe'; - & $vstest_path /Platform:x64 tests\ComputeSharp.D2D1.WinUI.Tests\bin\x64\Release\net6.0-windows10.0.22621.0\win10-x64\ComputeSharp.D2D1.WinUI.Tests.build.appxrecipe + & $vstest_path /Platform:x64 tests\ComputeSharp.D2D1.WinUI.Tests\bin\x64\Release\net7.0-windows10.0.22621.0\win10-x64\ComputeSharp.D2D1.WinUI.Tests.build.appxrecipe # Run all the local samples to ensure they build and run with no errors run-samples: @@ -161,15 +161,15 @@ jobs: - name: Build and run ComputeSharp.Sample run: > dotnet build samples\ComputeSharp.Sample\ComputeSharp.Sample.csproj -c Release -r win-x64 --no-self-contained -p:Platform=x64 -v n; - samples\ComputeSharp.Sample\bin\x64\Release\net6.0\win-x64\ComputeSharp.Sample.exe + samples\ComputeSharp.Sample\bin\x64\Release\net7.0\win-x64\ComputeSharp.Sample.exe - name: Build and run ComputeSharp.Sample.FSharp run: > dotnet build samples\ComputeSharp.Sample.FSharp\ComputeSharp.Sample.FSharp.fsproj -c Release -r win-x64 --no-self-contained -p:Platform=x64 -v n; - samples\ComputeSharp.Sample.FSharp\bin\x64\Release\net6.0\win-x64\ComputeSharp.Sample.FSharp.exe + samples\ComputeSharp.Sample.FSharp\bin\x64\Release\net7.0\win-x64\ComputeSharp.Sample.FSharp.exe - name: Build and run ComputeSharp.ImageProcessing.csproj run: > dotnet build samples\ComputeSharp.ImageProcessing\ComputeSharp.ImageProcessing.csproj -c Release -r win-x64 --no-self-contained -p:Platform=x64 -v n; - samples\ComputeSharp.ImageProcessing\bin\x64\Release\net6.0\win-x64\ComputeSharp.ImageProcessing.exe + samples\ComputeSharp.ImageProcessing\bin\x64\Release\net7.0\win-x64\ComputeSharp.ImageProcessing.exe # Run the NativeAOT samples as well run-samples-aot: diff --git a/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj b/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj index 91b04b03..e12e304c 100644 --- a/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj +++ b/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj @@ -1,7 +1,7 @@ Exe - net6.0 + net7.0 $(NoWarn);CA1416 diff --git a/samples/ComputeSharp.Benchmark/Program.cs b/samples/ComputeSharp.Benchmark/Program.cs index d095abb2..3a7a3ead 100644 --- a/samples/ComputeSharp.Benchmark/Program.cs +++ b/samples/ComputeSharp.Benchmark/Program.cs @@ -6,6 +6,6 @@ using BenchmarkDotNet.Running; // ================ // In order to run this benchmark, switch to Release mode and either run select // it as the startup project for the solution and run it without the debugger -// (CTRL + F5), or compile it and then go to its bin\Release\net6.0 folder, +// (CTRL + F5), or compile it and then go to its bin\Release\net7.0 folder, // open a cmd prompt and run "dotnet ComputeSharp.Benchmark.dll". BenchmarkSwitcher.FromAssembly(Assembly.GetExecutingAssembly()).Run(args); \ No newline at end of file diff --git a/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj b/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj index 4d720461..a00c93dc 100644 --- a/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj +++ b/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj @@ -1,7 +1,7 @@ Exe - net6.0 + net7.0 AnyCPU;x64;ARM64 $(NoWarn);CA1416 diff --git a/samples/ComputeSharp.Sample.FSharp.Shaders/ComputeSharp.Sample.FSharp.Shaders.csproj b/samples/ComputeSharp.Sample.FSharp.Shaders/ComputeSharp.Sample.FSharp.Shaders.csproj index 3cda0b7d..9a713f4e 100644 --- a/samples/ComputeSharp.Sample.FSharp.Shaders/ComputeSharp.Sample.FSharp.Shaders.csproj +++ b/samples/ComputeSharp.Sample.FSharp.Shaders/ComputeSharp.Sample.FSharp.Shaders.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 $(NoWarn);CA1416 diff --git a/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj b/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj index 8a0392e9..633870d5 100644 --- a/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj +++ b/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj @@ -2,7 +2,7 @@ Exe - net6.0 + net7.0 AnyCPU;x64;ARM64 5.0 diff --git a/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj b/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj index 2ab6faf3..30f225f3 100644 --- a/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj +++ b/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj @@ -1,7 +1,7 @@ Exe - net6.0 + net7.0 AnyCPU;x64;ARM64 $(NoWarn);CA1416 diff --git a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj index e789e5ba..26e0c5b6 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj +++ b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj @@ -1,7 +1,7 @@ WinExe - net6.0-windows10.0.22621.0 + net7.0-windows10.0.22621.0 10.0.17763.0 ComputeSharp.SwapChain.WinUI app.manifest diff --git a/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj b/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj index 8028821a..67698b89 100644 --- a/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj +++ b/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj @@ -1,7 +1,7 @@ Exe - net6.0 + net7.0 x64;ARM64 $(NoWarn);CA1416;IDE0210 diff --git a/src/ComputeSharp.Core/ComputeSharp.Core.csproj b/src/ComputeSharp.Core/ComputeSharp.Core.csproj index 64e1c888..b427ebf4 100644 --- a/src/ComputeSharp.Core/ComputeSharp.Core.csproj +++ b/src/ComputeSharp.Core/ComputeSharp.Core.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 diff --git a/src/ComputeSharp.D2D1.WinUI/ComputeSharp.D2D1.WinUI.csproj b/src/ComputeSharp.D2D1.WinUI/ComputeSharp.D2D1.WinUI.csproj index 2fe6baa8..19b6426a 100644 --- a/src/ComputeSharp.D2D1.WinUI/ComputeSharp.D2D1.WinUI.csproj +++ b/src/ComputeSharp.D2D1.WinUI/ComputeSharp.D2D1.WinUI.csproj @@ -1,6 +1,6 @@ - net6.0-windows10.0.22621.0 + net7.0-windows10.0.22621.0 10.0.17763.0 x64;ARM64 win10-x64;win10-arm64 diff --git a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj index 9bfe7961..72c2891b 100644 --- a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj +++ b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 windows6.1 diff --git a/src/ComputeSharp.D3D12MemoryAllocator/ComputeSharp.D3D12MemoryAllocator.csproj b/src/ComputeSharp.D3D12MemoryAllocator/ComputeSharp.D3D12MemoryAllocator.csproj index 09dd1034..09d28dcf 100644 --- a/src/ComputeSharp.D3D12MemoryAllocator/ComputeSharp.D3D12MemoryAllocator.csproj +++ b/src/ComputeSharp.D3D12MemoryAllocator/ComputeSharp.D3D12MemoryAllocator.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 windows6.2 diff --git a/src/ComputeSharp.Dxc/ComputeSharp.Dxc.csproj b/src/ComputeSharp.Dxc/ComputeSharp.Dxc.csproj index abb3485b..34cdcce5 100644 --- a/src/ComputeSharp.Dxc/ComputeSharp.Dxc.csproj +++ b/src/ComputeSharp.Dxc/ComputeSharp.Dxc.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 AnyCPU;x64;ARM64 windows6.2 diff --git a/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj b/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj index 20403ec5..718387a5 100644 --- a/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj +++ b/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 AnyCPU;x64;ARM64 windows6.2 diff --git a/src/ComputeSharp.WinUI/ComputeSharp.WinUI.csproj b/src/ComputeSharp.WinUI/ComputeSharp.WinUI.csproj index 8b172529..51496f44 100644 --- a/src/ComputeSharp.WinUI/ComputeSharp.WinUI.csproj +++ b/src/ComputeSharp.WinUI/ComputeSharp.WinUI.csproj @@ -1,6 +1,6 @@ - net6.0-windows10.0.22621.0 + net7.0-windows10.0.22621.0 10.0.17763.0 x64;ARM64 win10-x64;win10-arm64 diff --git a/src/ComputeSharp/ComputeSharp.csproj b/src/ComputeSharp/ComputeSharp.csproj index 6817795e..fd476db1 100644 --- a/src/ComputeSharp/ComputeSharp.csproj +++ b/src/ComputeSharp/ComputeSharp.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 windows6.2 diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index e9f3ae36..a483c04f 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -48,7 +48,7 @@ properties set below, because if that is the case the trimmable attribute will be set but the analyzers will not run, so warnings will be skipped. --> - + true true true @@ -68,7 +68,7 @@ - + <_Parameter1>false diff --git a/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj b/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj index b3a21db2..8f289c58 100644 --- a/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj +++ b/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 diff --git a/tests/ComputeSharp.D2D1.Tests.SourceGenerators/ComputeSharp.D2D1.Tests.SourceGenerators.csproj b/tests/ComputeSharp.D2D1.Tests.SourceGenerators/ComputeSharp.D2D1.Tests.SourceGenerators.csproj index 8a221bb1..180960db 100644 --- a/tests/ComputeSharp.D2D1.Tests.SourceGenerators/ComputeSharp.D2D1.Tests.SourceGenerators.csproj +++ b/tests/ComputeSharp.D2D1.Tests.SourceGenerators/ComputeSharp.D2D1.Tests.SourceGenerators.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 diff --git a/tests/ComputeSharp.D2D1.Tests.SourceGenerators/Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs b/tests/ComputeSharp.D2D1.Tests.SourceGenerators/Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs index 756229cf..461490bc 100644 --- a/tests/ComputeSharp.D2D1.Tests.SourceGenerators/Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs +++ b/tests/ComputeSharp.D2D1.Tests.SourceGenerators/Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs @@ -40,7 +40,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net70 }; test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly); @@ -101,7 +101,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net70 }; test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly); @@ -135,7 +135,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net70 }; test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly); @@ -193,7 +193,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net70 }; test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly); @@ -233,7 +233,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net70 }; test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly); @@ -285,7 +285,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net70 }; test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly); @@ -349,7 +349,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net70 }; test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly); diff --git a/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj index 8e3a1c27..1632a56e 100644 --- a/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj +++ b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj b/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj index 0920ed31..d6c479a2 100644 --- a/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj +++ b/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj @@ -1,7 +1,7 @@ WinExe - net6.0-windows10.0.22621.0 + net7.0-windows10.0.22621.0 10.0.17763.0 app.manifest x64;ARM64 diff --git a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj index 19265c70..75139122 100644 --- a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj +++ b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 AnyCPU;x64;ARM64 diff --git a/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj b/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj index 2d459143..faf560f8 100644 --- a/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj +++ b/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 AnyCPU;x64;ARM64 diff --git a/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj b/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj index dfc22942..cdc76e3b 100644 --- a/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj +++ b/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj @@ -1,7 +1,7 @@ Exe - net6.0 + net7.0 AnyCPU;x64;ARM64 enable diff --git a/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj b/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj index 92eee51b..7bed61c6 100644 --- a/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj +++ b/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 AnyCPU;x64;ARM64 diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj b/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj index ce49f5c0..2268e441 100644 --- a/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 diff --git a/tests/ComputeSharp.Tests.SourceGenerators/ComputeSharp.Tests.SourceGenerators.csproj b/tests/ComputeSharp.Tests.SourceGenerators/ComputeSharp.Tests.SourceGenerators.csproj index a0a2c77c..9b923a51 100644 --- a/tests/ComputeSharp.Tests.SourceGenerators/ComputeSharp.Tests.SourceGenerators.csproj +++ b/tests/ComputeSharp.Tests.SourceGenerators/ComputeSharp.Tests.SourceGenerators.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj index b90aaf82..9df88e04 100644 --- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj +++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net7.0 AnyCPU;x64;ARM64 From 14336448f56f340cd3d0148210662f262b6763fd Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 18 Oct 2023 18:20:54 +0200 Subject: [PATCH 2/3] Bump Roslyn dependencies to 4.7.0 --- .github/workflows/dotnet.yml | 2 +- .../ComputeSharp.CodeFixers.csproj | 2 +- .../ComputeSharp.Core.SourceGenerators.csproj | 2 +- .../ComputeSharp.D2D1.CodeFixers.csproj | 2 +- .../ComputeSharp.D2D1.SourceGenerators.csproj | 2 +- src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets | 8 ++++---- src/ComputeSharp.SourceGeneration/Helpers/HashCode.cs | 2 +- .../ComputeSharp.SourceGenerators.csproj | 2 +- src/ComputeSharp/ComputeSharp.targets | 8 ++++---- src/Directory.Build.targets | 2 +- .../ComputeSharp.D2D1.Tests.SourceGenerators.csproj | 2 +- .../Helpers/NativeLibrariesResolverTestsBase.cs | 4 ++-- 12 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 22c7c85e..cc60c541 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -106,7 +106,7 @@ jobs: - name: Run ComputeSharp.D2D1.Tests.AssemblyLevelAttributes run: dotnet test tests\ComputeSharp.D2D1.Tests.AssemblyLevelAttributes\ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj -c Release -v n -l "console;verbosity=detailed" - # Run the D2D1 source generators tests as well (only on .NET 6, like for the DX12 ones) + # Run the D2D1 source generators tests as well (only on .NET 7, like for the DX12 ones) - name: Run ComputeSharp.D2D1.Tests.SourceGenerators run: dotnet test tests\ComputeSharp.D2D1.Tests.SourceGenerators\ComputeSharp.D2D1.Tests.SourceGenerators.csproj -v n -l "console;verbosity=detailed" diff --git a/src/ComputeSharp.CodeFixers/ComputeSharp.CodeFixers.csproj b/src/ComputeSharp.CodeFixers/ComputeSharp.CodeFixers.csproj index a729ff18..eac74bbc 100644 --- a/src/ComputeSharp.CodeFixers/ComputeSharp.CodeFixers.csproj +++ b/src/ComputeSharp.CodeFixers/ComputeSharp.CodeFixers.csproj @@ -4,7 +4,7 @@ - + diff --git a/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj b/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj index 9dadf433..59363e99 100644 --- a/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj +++ b/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj @@ -13,7 +13,7 @@ - + diff --git a/src/ComputeSharp.D2D1.CodeFixers/ComputeSharp.D2D1.CodeFixers.csproj b/src/ComputeSharp.D2D1.CodeFixers/ComputeSharp.D2D1.CodeFixers.csproj index 14fb87c2..c6615917 100644 --- a/src/ComputeSharp.D2D1.CodeFixers/ComputeSharp.D2D1.CodeFixers.csproj +++ b/src/ComputeSharp.D2D1.CodeFixers/ComputeSharp.D2D1.CodeFixers.csproj @@ -4,7 +4,7 @@ - + diff --git a/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj b/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj index 56552ae9..27b2d5e0 100644 --- a/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj +++ b/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj @@ -79,7 +79,7 @@ - + diff --git a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets index 66fb69f0..da75c868 100644 --- a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets +++ b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.targets @@ -7,7 +7,7 @@ - + @(ComputeSharpD2D1CurrentCompilerAssemblyIdentity->'%(Version)') - true + true - + @@ -42,7 +42,7 @@ emitting this manually lets us customize the message to inform developers as to why exactly the generators have been disabled, and that ComputeSharp will not work at all unless a more up to date IDE or compiler version are used. --> - + diff --git a/src/ComputeSharp.SourceGeneration/Helpers/HashCode.cs b/src/ComputeSharp.SourceGeneration/Helpers/HashCode.cs index 1bb78a55..7a8ae58b 100644 --- a/src/ComputeSharp.SourceGeneration/Helpers/HashCode.cs +++ b/src/ComputeSharp.SourceGeneration/Helpers/HashCode.cs @@ -9,7 +9,7 @@ using System.Security.Cryptography; namespace System; /// -/// A polyfill type that mirrors some methods from on .NET 6. +/// A polyfill type that mirrors some methods from on .7. /// internal struct HashCode { diff --git a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj index 7e5ad49b..8782392a 100644 --- a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj +++ b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj @@ -69,7 +69,7 @@ - + diff --git a/src/ComputeSharp/ComputeSharp.targets b/src/ComputeSharp/ComputeSharp.targets index f34b0f9d..5f65d72a 100644 --- a/src/ComputeSharp/ComputeSharp.targets +++ b/src/ComputeSharp/ComputeSharp.targets @@ -7,7 +7,7 @@ - + @(ComputeSharpCurrentCompilerAssemblyIdentity->'%(Version)') - true + true - + @@ -42,7 +42,7 @@ emitting this manually lets us customize the message to inform developers as to why exactly the generators have been disabled, and that ComputeSharp will not work at all unless a more up to date IDE or compiler version are used. --> - + diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index a483c04f..4db6654e 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -43,7 +43,7 @@