From b6899d0a88c93aadad228fd9c6ddbcdfb31cb75b Mon Sep 17 00:00:00 2001 From: Noah Gilson Date: Wed, 9 Nov 2022 16:58:01 -0800 Subject: [PATCH] only do rid inference on publishaot etc if is publishing --- .../Microsoft.NET.RuntimeIdentifierInference.targets | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets index a2a3f285dbaa..186a9afc2114 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets +++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets @@ -74,9 +74,9 @@ Copyright (c) .NET Foundation. All rights reserved. '$(IsRidAgnostic)' != 'true' and ( '$(SelfContained)' == 'true' or - '$(PublishReadyToRun)' == 'true' or - '$(PublishSingleFile)' == 'true' or - '$(PublishAot)' == 'true' + ('$(_IsPublishing)' == 'true' and '$(PublishReadyToRun)' == 'true') or + ('$(_IsPublishing)' == 'true' and '$(PublishSingleFile)' == 'true') or + ('$(_IsPublishing)' == 'true' and '$(PublishAot)' == 'true') )">true