From bb3a27a55037173666e73ff8c4729cd86d7df20d Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 22:40:17 +0200 Subject: [PATCH 1/7] Remove NS2.0 support from ComputeSharp.Pix --- src/ComputeSharp.Pix/ComputeSharp.Pix.csproj | 2 +- tests/ComputeSharp.Pix.NuGet/ComputeSharp.Pix.NuGet.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj b/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj index 480953cc..f18e92e3 100644 --- a/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj +++ b/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj @@ -1,6 +1,6 @@ - netstandard2.0;net6.0 + net6.0 AnyCPU;x64;ARM64 windows6.2 diff --git a/tests/ComputeSharp.Pix.NuGet/ComputeSharp.Pix.NuGet.csproj b/tests/ComputeSharp.Pix.NuGet/ComputeSharp.Pix.NuGet.csproj index d073ca8e..6cebe23f 100644 --- a/tests/ComputeSharp.Pix.NuGet/ComputeSharp.Pix.NuGet.csproj +++ b/tests/ComputeSharp.Pix.NuGet/ComputeSharp.Pix.NuGet.csproj @@ -1,7 +1,7 @@ Exe - net472;net6.0;net7.0 + net6.0;net7.0 AnyCPU;x64;ARM64 https://api.nuget.org/v3/index.json; From 1bad666f26550fd10a5cf86b011a3a68576a245c Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 22:44:53 +0200 Subject: [PATCH 2/7] Remove NS2.0 support from ComputeSharp.Dynamic --- ComputeSharp.sln | 1 - .../ComputeSharp.ImageProcessing.csproj | 2 +- .../ComputeSharp.Sample.FSharp.Shaders.csproj | 2 +- .../ComputeSharp.Sample.FSharp.fsproj | 2 +- samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj | 2 +- src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj | 5 +---- .../ComputeSharp.Dynamic.NuGet.csproj | 2 +- .../ComputeSharp.Tests.GlobalStatements.csproj | 2 +- .../ComputeSharp.Tests.Internals.csproj | 2 +- tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj | 3 +-- 10 files changed, 9 insertions(+), 14 deletions(-) diff --git a/ComputeSharp.sln b/ComputeSharp.sln index 92618d7b..a84240cf 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -471,7 +471,6 @@ Global src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{51d5a422-d3a5-4c4d-8a6d-a048940bf279}*SharedItemsImports = 13 samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{73c32d0f-64db-4674-84e9-8fcc41228474}*SharedItemsImports = 5 src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{764bc0f5-0c5e-49ad-abaa-e3874c0f3286}*SharedItemsImports = 5 - src\TerraFX.Interop.Windows.Dynamic\TerraFX.Interop.Windows.Dynamic.projitems*{76c66257-fdaa-47ab-85e7-ef757eab10c0}*SharedItemsImports = 5 src\ComputeSharp.SourceGeneration.Hlsl\ComputeSharp.SourceGeneration.Hlsl.projitems*{9ac496a3-bbf0-4c8f-a50d-a20bf01c5e05}*SharedItemsImports = 13 src\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.projitems*{9da1da9f-f8b2-4b25-be80-c21f773029e3}*SharedItemsImports = 13 samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{9ea5ae9d-c39a-4f43-b03e-0a848ea2558a}*SharedItemsImports = 5 diff --git a/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj b/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj index 777cc7e1..f62d5177 100644 --- a/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj +++ b/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj @@ -1,7 +1,7 @@ Exe - net472;net6.0;net7.0 + 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 bed5ec98..220912b1 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 @@ - net472;net6.0 + net6.0 $(NoWarn);CA1416 diff --git a/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj b/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj index 0a47928f..00ee2adf 100644 --- a/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj +++ b/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj @@ -2,7 +2,7 @@ Exe - net472;net6.0;net7.0 + 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 3e3811bd..dc6f9cba 100644 --- a/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj +++ b/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj @@ -1,7 +1,7 @@ Exe - net472;net6.0;net7.0 + net6.0;net7.0 AnyCPU;x64;ARM64 $(NoWarn);CA1416 diff --git a/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj b/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj index ab94b32e..6a602110 100644 --- a/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj +++ b/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj @@ -1,6 +1,6 @@ - netstandard2.0;net6.0 + net6.0 AnyCPU;x64;ARM64 windows6.2 @@ -14,9 +14,6 @@ - - - - + - - - - - - - - - + + @@ -37,7 +29,4 @@ - - - diff --git a/tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj b/tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj index 3cac8867..d1e3c70c 100644 --- a/tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj +++ b/tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj @@ -1,7 +1,7 @@ Exe - net472;net6.0;net7.0 + net6.0;net7.0 AnyCPU;x64;ARM64 https://api.nuget.org/v3/index.json; diff --git a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj index 73e438c3..90df2bab 100644 --- a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj +++ b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj @@ -1,7 +1,6 @@ - net472;net6.0;net7.0 - net6.0;net7.0 + 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 6de45422..acb04492 100644 --- a/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj +++ b/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj @@ -1,6 +1,6 @@ - net472;net6.0;net7.0 + net6.0;net7.0 AnyCPU;x64;ARM64 From ffbcdb6435a2a1232e299ec618ed7633586609ed Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 22:51:06 +0200 Subject: [PATCH 4/7] Remove NS2.0 support from ComputeSharp.D2D1 --- src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj | 7 +------ .../ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj | 2 +- .../ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj index 2fdee2e1..c1d4d43f 100644 --- a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj +++ b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj @@ -1,6 +1,6 @@ - netstandard2.0;net6.0 + net6.0 windows6.1 @@ -12,11 +12,6 @@ - - - - - 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 689cf401..b798d1ed 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 @@ - net472;net6.0;net7.0 + net6.0;net7.0 diff --git a/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj index a6633afc..b873a651 100644 --- a/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj +++ b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj @@ -1,6 +1,6 @@ - net472;net6.0;net7.0 + net6.0;net7.0 From 2cf200c1ad559ed050efbb616e7d21974b4ddb65 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 10 Oct 2023 22:54:58 +0200 Subject: [PATCH 5/7] Remove NS2.0 support from ComputeSharp.Core --- ComputeSharp.sln | 1 - src/ComputeSharp.Core/ComputeSharp.Core.csproj | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/ComputeSharp.sln b/ComputeSharp.sln index c1e7bb95..e58f8bc8 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -469,7 +469,6 @@ Global src\TerraFX.Interop.Windows\TerraFX.Interop.Windows.projitems*{514ff00e-bbf0-4d55-a47c-eeeb6208adce}*SharedItemsImports = 13 src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{51d5a422-d3a5-4c4d-8a6d-a048940bf279}*SharedItemsImports = 13 samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{73c32d0f-64db-4674-84e9-8fcc41228474}*SharedItemsImports = 5 - src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{764bc0f5-0c5e-49ad-abaa-e3874c0f3286}*SharedItemsImports = 5 src\ComputeSharp.SourceGeneration.Hlsl\ComputeSharp.SourceGeneration.Hlsl.projitems*{9ac496a3-bbf0-4c8f-a50d-a20bf01c5e05}*SharedItemsImports = 13 src\TerraFX.Interop.Windows.D2D1\TerraFX.Interop.Windows.D2D1.projitems*{9da1da9f-f8b2-4b25-be80-c21f773029e3}*SharedItemsImports = 13 samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{9ea5ae9d-c39a-4f43-b03e-0a848ea2558a}*SharedItemsImports = 5 diff --git a/src/ComputeSharp.Core/ComputeSharp.Core.csproj b/src/ComputeSharp.Core/ComputeSharp.Core.csproj index 7022c387..74743472 100644 --- a/src/ComputeSharp.Core/ComputeSharp.Core.csproj +++ b/src/ComputeSharp.Core/ComputeSharp.Core.csproj @@ -1,6 +1,6 @@ - netstandard2.0;net6.0 + net6.0 @@ -13,16 +13,8 @@ - - - - - - - - From 861a87f823494bf78dc4aba95473ca91144c3432 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 11 Oct 2023 00:31:07 +0200 Subject: [PATCH 6/7] Remove .NET Framework 4.7.2 from CI script --- .github/workflows/dotnet.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 63b9cf24..35ac0492 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -68,7 +68,7 @@ jobs: needs: [build-solution] strategy: matrix: - framework: [net7.0, net6.0, net472] + framework: [net7.0, net6.0] runs-on: windows-2022 # Set the environment variable which is then looked up in ComputeSharp.Dynamic. @@ -99,13 +99,9 @@ jobs: # the code paths being tested in this project are heavily dependent on process-wide mutable state (ie. DirectX 12 devices). - name: Run ComputeSharp.Tests.DeviceLost "DeviceDisposal" run: dotnet test tests\ComputeSharp.Tests.DeviceLost\ComputeSharp.Tests.DeviceLost.csproj --filter "TestCategory=DeviceDisposal" -c Release -f ${{matrix.framework}} -v n -l "console;verbosity=detailed" - - # These tests are failing randomly in the CI on .NET Framework, disabling them just for now - - if: matrix.framework != 'net472' - name: Run ComputeSharp.Tests.DeviceLost "DeviceLost" + - name: Run ComputeSharp.Tests.DeviceLost "DeviceLost" run: dotnet test tests\ComputeSharp.Tests.DeviceLost\ComputeSharp.Tests.DeviceLost.csproj --filter "TestCategory=DeviceLost" -c Release -f ${{matrix.framework}} -v n -l "console;verbosity=detailed" - - if: matrix.framework != 'net472' - name: Run ComputeSharp.Tests.DeviceLost "GetDefaultDevice" + - name: Run ComputeSharp.Tests.DeviceLost "GetDefaultDevice" run: dotnet test tests\ComputeSharp.Tests.DeviceLost\ComputeSharp.Tests.DeviceLost.csproj --filter "TestCategory=GetDefaultDevice" -c Release -f ${{matrix.framework}} -v n -l "console;verbosity=detailed" # D2D1 unit tests @@ -171,7 +167,7 @@ jobs: needs: [build-solution] strategy: matrix: - framework: [net7.0, net6.0, net472] + framework: [net7.0, net6.0] runs-on: windows-2022 steps: - name: Git checkout @@ -296,7 +292,7 @@ jobs: needs: [build-packages] strategy: matrix: - framework: [net7.0, net6.0, net472] + framework: [net7.0, net6.0] runs-on: windows-2022 steps: - name: Git checkout From 8e0d27a22503a2963b09d5dd43853c4229902b93 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 11 Oct 2023 01:50:20 +0200 Subject: [PATCH 7/7] Update .targets to pack generators from .NET 6 projects --- src/Directory.Build.targets | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index c605755e..e9f3ae36 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -8,24 +8,21 @@ false true - $(TargetFrameworks.Split(';')[0].Trim()) false true - $(TargetFrameworks.Split(';')[0].Trim()) - - - + @@ -35,12 +32,11 @@ - -