From 3d7aaecf7b0598030b3e4c22f50d49cc9c3eb598 Mon Sep 17 00:00:00 2001 From: Enrico Schmitz Date: Tue, 9 Nov 2021 12:09:45 +0100 Subject: [PATCH] Add Visual Studio 17 (2022) --- src/windows_registry.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/windows_registry.rs b/src/windows_registry.rs index 377be5bc7..65cd5f159 100644 --- a/src/windows_registry.rs +++ b/src/windows_registry.rs @@ -89,6 +89,8 @@ pub enum VsVers { Vs15, /// Visual Studio 16 (2019) Vs16, + /// Visual Studio 17 (2022) + Vs17, /// Hidden variant that should not be matched on. Callers that want to /// handle an enumeration of `VsVers` instances should always have a default @@ -114,6 +116,7 @@ pub fn find_vs_version() -> Result { match env::var("VisualStudioVersion") { Ok(version) => match &version[..] { + "17.0" => Ok(VsVers::Vs17), "16.0" => Ok(VsVers::Vs16), "15.0" => Ok(VsVers::Vs15), "14.0" => Ok(VsVers::Vs14),