From 2721bf8abf57dd67e0ad3c05cc94ce3228251918 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Mon, 21 Aug 2023 15:15:26 -0700 Subject: [PATCH] Remove need for passed in "ArcadeSdk" variable in source build Instead of using a passed in variable to determine where arcade lives, use a similar strategy of a few other repos (deployment tools, runtime, diagnostics) of using the parent directory of the tasks assembly, which is a property always available. This can then be used to find the release packages targets. Avoids the need to pass in the arcade SDK location as an env variable for FSharp. --- .../Microsoft.FSharp.Compiler.fsproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.fsproj b/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.fsproj index 44a907945a2..1eb571198bf 100644 --- a/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.fsproj +++ b/src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.fsproj @@ -19,8 +19,8 @@ - $(NuGetPackageRoot)microsoft.dotnet.arcade.sdk\$(ArcadeSdkVersion)\ - <_BuildReleasePackagesTargets>$(ArcadeSdkDir)tools\BuildReleasePackages.targets + <_ArcadeSdkMSBuildProjectDir>$([System.IO.Path]::GetDirectoryName('$(ArcadeSdkBuildTasksAssembly)'))\..\ + <_BuildReleasePackagesTargets>$(_ArcadeSdkMSBuildProjectDir)BuildReleasePackages.targets