Skip to content

Commit

Permalink
Add Visual Studio 17 (2022) (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
ensch committed Nov 9, 2021
1 parent 31f8d57 commit e643cc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/windows_registry.rs
Expand Up @@ -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
Expand All @@ -114,6 +116,7 @@ pub fn find_vs_version() -> Result<VsVers, String> {

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),
Expand Down

0 comments on commit e643cc1

Please sign in to comment.