From a25503e43dd8ea2542e38aad161e4f54db78a8ea Mon Sep 17 00:00:00 2001 From: "Brett V. Forsgren" Date: Wed, 12 May 2021 11:38:14 -0600 Subject: [PATCH] ensure compiler and targets can be found in legacy projects --- vsintegration/src/FSharp.ProjectSystem.Base/Utilities.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsintegration/src/FSharp.ProjectSystem.Base/Utilities.cs b/vsintegration/src/FSharp.ProjectSystem.Base/Utilities.cs index b638c4c69fb..00cf273f321 100644 --- a/vsintegration/src/FSharp.ProjectSystem.Base/Utilities.cs +++ b/vsintegration/src/FSharp.ProjectSystem.Base/Utilities.cs @@ -740,7 +740,7 @@ public static Microsoft.Build.Evaluation.Project InitializeMsBuildProject(Micros { var lclGlobalProperties = (null == globalProperties) ? new Dictionary() : new Dictionary(globalProperties) { - { "FSharpCompilerPath", Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) } + { "FSharpCompilerPath", Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Tools") } }; buildProject = buildEngine.LoadProject(fullProjectPath, lclGlobalProperties, null); buildProject.IsBuildEnabled = true;