File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,8 @@ pub enum VsVers {
103
103
Vs14 ,
104
104
/// Visual Studio 15 (2017)
105
105
Vs15 ,
106
+ /// Visual Studio 16 (2019)
107
+ Vs16 ,
106
108
107
109
/// Hidden variant that should not be matched on. Callers that want to
108
110
/// handle an enumeration of `VsVers` instances should always have a default
@@ -128,6 +130,7 @@ pub fn find_vs_version() -> Result<VsVers, String> {
128
130
129
131
match env:: var ( "VisualStudioVersion" ) {
130
132
Ok ( version) => match & version[ ..] {
133
+ "16.0" => Ok ( VsVers :: Vs16 ) ,
131
134
"15.0" => Ok ( VsVers :: Vs15 ) ,
132
135
"14.0" => Ok ( VsVers :: Vs14 ) ,
133
136
"12.0" => Ok ( VsVers :: Vs12 ) ,
@@ -144,7 +147,9 @@ pub fn find_vs_version() -> Result<VsVers, String> {
144
147
_ => {
145
148
// Check for the presense of a specific registry key
146
149
// that indicates visual studio is installed.
147
- if impl_:: has_msbuild_version ( "15.0" ) {
150
+ if impl_:: has_msbuild_version ( "16.0" ) {
151
+ Ok ( VsVers :: Vs16 )
152
+ } else if impl_:: has_msbuild_version ( "15.0" ) {
148
153
Ok ( VsVers :: Vs15 )
149
154
} else if impl_:: has_msbuild_version ( "14.0" ) {
150
155
Ok ( VsVers :: Vs14 )
You can’t perform that action at this time.
0 commit comments