From 7228c3353bf4a39e9fbaeeb41ca8b65fab59a506 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Thu, 12 Oct 2023 20:22:06 +0200 Subject: [PATCH] Centralize defines for SOURCE_GENERATOR --- .../ComputeSharp.Core.SourceGenerators.csproj | 4 ---- .../ComputeSharp.D2D1.SourceGenerators.csproj | 4 ---- .../ComputeSharp.SourceGenerators.csproj | 4 ---- src/Directory.Build.props | 7 +++++-- 4 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj b/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj index 6f9be687..00a1b79d 100644 --- a/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj +++ b/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj @@ -2,10 +2,6 @@ netstandard2.0 - - - $(DefineConstants);SOURCE_GENERATOR - diff --git a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj index 3f9d8158..196b2bdc 100644 --- a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj +++ b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj @@ -4,10 +4,6 @@ $(NoWarn);CS1591;CS0649;CS1574 - - $(DefineConstants);SOURCE_GENERATOR - - diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 00d7ce1c..82e682af 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -38,6 +38,9 @@ + + $(DefineConstants);SOURCE_GENERATOR + false @@ -69,9 +72,9 @@ - + all build;analyzers