From e643cc14c497007a73fbf347d295a15cde6cd70f Mon Sep 17 00:00:00 2001 From: Enrico Schmitz Date: Tue, 9 Nov 2021 17:52:26 +0100 Subject: [PATCH] Add Visual Studio 17 (2022) (#632) --- src/windows_registry.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/windows_registry.rs b/src/windows_registry.rs index 377be5bc..65cd5f15 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),