From d514e4cff629396c9cced6609ec89438efad06ad Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Tue, 25 Jan 2022 17:32:50 +0100 Subject: [PATCH] Override GetTargetPath in Traversal SDK There are use-cases where you want to reference a Traversal SDK project, i.e. when you want to receive its P2P via the `IncludeTransitiveProjectReferences` feature. In such cases msbuild prints out an error when the tree is built with the `--no-dependencies` switch (or I guess when building inside VS) as that will trigger an MSBuild Exec task which calls into the `GetTargetsPath` target which currently doesn't exist for Traversal projects. Hence adding this here to avoid the error that is being printed. --- src/Traversal/Sdk/Sdk.targets | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Traversal/Sdk/Sdk.targets b/src/Traversal/Sdk/Sdk.targets index 09993804..a1e28d18 100644 --- a/src/Traversal/Sdk/Sdk.targets +++ b/src/Traversal/Sdk/Sdk.targets @@ -235,6 +235,11 @@ StopOnFirstFailure="$(StopOnFirstFailure)" ContinueOnError="$([MSBuild]::ValueOrDefault('$(PublishContinueOnError)', '$(ContinueOnError)'))" /> + + +