From 4a48f3f4966fe5fc7afd7eacfb46f17735aab979 Mon Sep 17 00:00:00 2001 From: Dennis Duda Date: Tue, 24 Jan 2023 02:18:14 +0100 Subject: [PATCH] fix msbuild from vs2022 not being found --- src/windows_registry.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/windows_registry.rs b/src/windows_registry.rs index 276688b03..b05498c29 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);