File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -363,9 +363,10 @@ mod impl_ {
363
363
) -> Option < Tool > {
364
364
// Early return if the environment isn't one that is known to have compiler toolsets in PATH
365
365
// `VCINSTALLDIR` is set from vcvarsall.bat (developer command prompt)
366
- // `VisualStudioDir` is set by msbuild when invoking custom build steps
366
+ // `VSTEL_MSBuildProjectFullPath` is set by msbuild when invoking custom build steps
367
+ // NOTE: `VisualStudioDir` used to be used but this isn't set when invoking msbuild from the commandline
367
368
if env_getter. get_env ( "VCINSTALLDIR" ) . is_none ( )
368
- && env_getter. get_env ( "VisualStudioDir " ) . is_none ( )
369
+ && env_getter. get_env ( "VSTEL_MSBuildProjectFullPath " ) . is_none ( )
369
370
{
370
371
return None ;
371
372
}
You can’t perform that action at this time.
0 commit comments