From e894826cb4243ff5bd27f8b99bd3df4ebed9141e Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 6 Nov 2024 15:11:14 -0800 Subject: [PATCH] Run 'AddImplicitDefineConstants' on 'BeforeCompile' --- .../targets/Microsoft.NET.Sdk.BeforeCommon.targets | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.BeforeCommon.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.BeforeCommon.targets index 6f5100260835..71706dbc7843 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.BeforeCommon.targets +++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.BeforeCommon.targets @@ -251,11 +251,18 @@ Copyright (c) .NET Foundation. All rights reserved. - + + BeforeTargets="BeforeCompile" > $(DefineConstants);@(_ImplicitDefineConstant) $(FinalDefineConstants),@(_ImplicitDefineConstant->'%(Identity)=-1', ',')