From 571fbb8cd32a9db7ea4511c515c8af293767bb45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20S=C3=A1nchez=20L=C3=B3pez?= <1175054+carlossanlop@users.noreply.github.com> Date: Thu, 16 Mar 2023 00:45:27 -0700 Subject: [PATCH] Change execution order conditions for intellisense swapping and copying msbuild targets. (#83117) * Change execution order conditions for intellisense swapping and copying msbuild targets. * Don't change doc file when there isn't a intellisense one --------- Co-authored-by: Viktor Hofer --- eng/intellisense.targets | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/eng/intellisense.targets b/eng/intellisense.targets index f00dab6e5fc30..a4ffedf6d790c 100644 --- a/eng/intellisense.targets +++ b/eng/intellisense.targets @@ -5,22 +5,20 @@ - - + Condition="'$(UseIntellisensePackageDocXmlFile)' != 'true'"> + + - - $(NoWarn);1591 + + $(NoWarn);1591 $([MSBuild]::NormalizeDirectory('$(NuGetPackageRoot)', 'microsoft.private.intellisense', '$(MicrosoftPrivateIntellisenseVersion)', 'IntellisenseFiles')) $([MSBuild]::NormalizePath('$(IntellisensePackageXmlRootFolder)', 'net', '1033', '$(AssemblyName).xml')) $([MSBuild]::NormalizePath('$(IntellisensePackageXmlRootFolder)', 'dotnet-plat-ext', '1033', '$(AssemblyName).xml')) - $(IntellisensePackageXmlFilePathFromNetFolder) - $(IntellisensePackageXmlFilePathFromDotNetPlatExtFolder) + $(IntellisensePackageXmlFilePathFromNetFolder) + $(IntellisensePackageXmlFilePathFromDotNetPlatExtFolder) @@ -30,22 +28,23 @@ + BeforeTargets="CopyFilesToOutputDirectory;DocumentationProjectOutputGroup" + Condition="'$(IntellisensePackageXmlFilePath)' != ''"> + + Condition="'$(IsNetCoreAppSrc)' == 'true' and '$(TargetFramework)' == '$(NetCoreAppCurrent)'"> - \ No newline at end of file +