From 8bb266c99f96d12329b6b3c2a1e0630f35fedbfc Mon Sep 17 00:00:00 2001 From: Russell Greene Date: Thu, 5 Sep 2024 17:38:45 -0600 Subject: [PATCH] fix finding toolchains when invoked by msbuild --- src/windows/find_tools.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/windows/find_tools.rs b/src/windows/find_tools.rs index 8a305621..3d0c96c1 100644 --- a/src/windows/find_tools.rs +++ b/src/windows/find_tools.rs @@ -363,9 +363,11 @@ mod impl_ { ) -> Option { // Early return if the environment isn't one that is known to have compiler toolsets in PATH // `VCINSTALLDIR` is set from vcvarsall.bat (developer command prompt) - // `VisualStudioDir` is set by msbuild when invoking custom build steps + // `VisualStudioDir` is set by Visual Studio when invoking custom build steps + // `VSTEL_MSBuildProjectFullPath` is set by msbuild when invoking custom build steps if env_getter.get_env("VCINSTALLDIR").is_none() && env_getter.get_env("VisualStudioDir").is_none() + && env_getter.get_env("VSTEL_MSBuildProjectFullPath").is_none() { return None; }