Skip to content

Commit 8bb266c

Browse files
committed
fix finding toolchains when invoked by msbuild
1 parent e8b13ba commit 8bb266c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/windows/find_tools.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,11 @@ mod impl_ {
363363
) -> Option<Tool> {
364364
// Early return if the environment isn't one that is known to have compiler toolsets in PATH
365365
// `VCINSTALLDIR` is set from vcvarsall.bat (developer command prompt)
366-
// `VisualStudioDir` is set by msbuild when invoking custom build steps
366+
// `VisualStudioDir` is set by Visual Studio when invoking custom build steps
367+
// `VSTEL_MSBuildProjectFullPath` is set by msbuild when invoking custom build steps
367368
if env_getter.get_env("VCINSTALLDIR").is_none()
368369
&& env_getter.get_env("VisualStudioDir").is_none()
370+
&& env_getter.get_env("VSTEL_MSBuildProjectFullPath").is_none()
369371
{
370372
return None;
371373
}

0 commit comments

Comments
 (0)