Skip to content

Commit e643cc1

Browse files
authored
Add Visual Studio 17 (2022) (#632)
1 parent 31f8d57 commit e643cc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/windows_registry.rs

+3
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ pub enum VsVers {
8989
Vs15,
9090
/// Visual Studio 16 (2019)
9191
Vs16,
92+
/// Visual Studio 17 (2022)
93+
Vs17,
9294

9395
/// Hidden variant that should not be matched on. Callers that want to
9496
/// handle an enumeration of `VsVers` instances should always have a default
@@ -114,6 +116,7 @@ pub fn find_vs_version() -> Result<VsVers, String> {
114116

115117
match env::var("VisualStudioVersion") {
116118
Ok(version) => match &version[..] {
119+
"17.0" => Ok(VsVers::Vs17),
117120
"16.0" => Ok(VsVers::Vs16),
118121
"15.0" => Ok(VsVers::Vs15),
119122
"14.0" => Ok(VsVers::Vs14),

0 commit comments

Comments
 (0)