From dfa74eaa3eeda96cb76031fc99dff11c4cca2c3e Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Tue, 15 Feb 2022 17:30:39 +0100 Subject: [PATCH 1/3] Traversal: Keep GetTargetPath in sync with Build https://github.com/microsoft/MSBuildSdks/commit/1c02e77c5d96c50b803e348b6c3444b578d3dee0 I made the GetTargetPath target for traversal projects return nothing. This is actually wrong as msbuild projects are expected to return the same data in the Build and the GetTargetPath target. If those two targets aren't in sync, a behavior difference is observable when a traversal project is P2Pd and the dependent project reads from the `CollectedBuildOutput` (which is returned by the `ResolveProjectReferences` target). If the `BuildProjectReferences=true` flag is passed in, the output in the ResolveP2P is currently empty vs. not empty during a normal build without the flag set. --- src/Traversal/Sdk/Sdk.targets | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/src/Traversal/Sdk/Sdk.targets b/src/Traversal/Sdk/Sdk.targets index a1e28d18..844a8376 100644 --- a/src/Traversal/Sdk/Sdk.targets +++ b/src/Traversal/Sdk/Sdk.targets @@ -95,6 +95,10 @@ + + + ResolveP2PReferences; + @@ -236,10 +240,23 @@ ContinueOnError="$([MSBuild]::ValueOrDefault('$(PublishContinueOnError)', '$(ContinueOnError)'))" /> - - + + + + + + +