From d0df9331e1290bb2100275742db3b2a3f517a17d Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 19 Oct 2022 03:31:09 +0200 Subject: [PATCH] Unify T4 .csproj properties in shared .props file --- Directory.Build.targets | 13 ++++++++++ .../ComputeSharp.Core.csproj | 17 ++----------- .../ComputeSharp.D2D1.csproj | 17 ++----------- src/ComputeSharp/ComputeSharp.csproj | 25 +++---------------- .../ComputeSharp.Tests.csproj | 25 +++++-------------- 5 files changed, 26 insertions(+), 71 deletions(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index 7ceecbc6..01237a21 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -30,4 +30,17 @@ $(Version).$(GITHUB_RUN_ID) $(PackageVersion)+$(GITHUB_SHA) + + + + + %(Filename).g.cs + TextTemplatingFileGenerator + + + $([System.IO.Path]::GetFileNameWithoutExtension('%(Filename)')).tt + True + True + + \ No newline at end of file diff --git a/src/ComputeSharp.Core/ComputeSharp.Core.csproj b/src/ComputeSharp.Core/ComputeSharp.Core.csproj index 4b1039be..5b41e119 100644 --- a/src/ComputeSharp.Core/ComputeSharp.Core.csproj +++ b/src/ComputeSharp.Core/ComputeSharp.Core.csproj @@ -1,4 +1,4 @@ - + netstandard2.0;net6.0 @@ -20,24 +20,11 @@ - + - - - - %(Filename).g.cs - TextTemplatingFileGenerator - - - $([System.IO.Path]::GetFileNameWithoutExtension('%(Filename)')).tt - True - True - - - diff --git a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj index fab27296..d80e2324 100644 --- a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj +++ b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj @@ -1,4 +1,4 @@ - + netstandard2.0;net6.0 bin\Release @@ -16,23 +16,10 @@ - + - - - True - True - PixelShaderEffect.Properties.tt - - - - - TextTemplatingFileGenerator - PixelShaderEffect.Properties.g.cs - - diff --git a/src/ComputeSharp/ComputeSharp.csproj b/src/ComputeSharp/ComputeSharp.csproj index 697726da..41ca4da3 100644 --- a/src/ComputeSharp/ComputeSharp.csproj +++ b/src/ComputeSharp/ComputeSharp.csproj @@ -1,4 +1,4 @@ - + netstandard2.0;net6.0 bin\Release @@ -14,14 +14,6 @@ - - - True - True - ReferenceTrackedTypes.tt - - - @@ -41,22 +33,11 @@ - - - TextTemplatingFileGenerator - ReferenceTrackedTypes.g.cs - - + + - - - True - True - ReferenceTrackedTypes.tt - - diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj index afa1f9b8..6ff62357 100644 --- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj +++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj @@ -1,4 +1,4 @@ - + net472;netcoreapp3.1;net6.0 @@ -23,6 +23,11 @@ + + + + + @@ -107,22 +112,4 @@ - - - - - - - - - %(Filename).g.cs - TextTemplatingFileGenerator - - - $([System.IO.Path]::GetFileNameWithoutExtension('%(Filename)')).tt - True - True - - -