diff --git a/src/windows_registry.rs b/src/windows_registry.rs index 276688b0..b05498c2 100644 --- a/src/windows_registry.rs +++ b/src/windows_registry.rs @@ -866,7 +866,9 @@ mod impl_ { // see http://stackoverflow.com/questions/328017/path-to-msbuild pub fn find_msbuild(target: &str) -> Option { // VS 15 (2017) changed how to locate msbuild - if let Some(r) = find_msbuild_vs16(target) { + if let Some(r) = find_msbuild_vs17(target) { + return Some(r); + } else if let Some(r) = find_msbuild_vs16(target) { return Some(r); } else if let Some(r) = find_msbuild_vs15(target) { return Some(r);