Skip to content

Commit 299e5dd

Browse files
authored
vs2019 preview search path added (#501)
* vs2019 preview search path added * rust format * rust format 2 * rust format 3 * rust format 4 * rust format 5 * rust format 6
1 parent 81fcb53 commit 299e5dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/windows_registry.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,11 @@ mod impl_ {
227227
let installation_name = instance.installation_name().ok()?;
228228
if installation_name.to_str()?.starts_with("VisualStudio/16.") {
229229
Some(PathBuf::from(instance.installation_path().ok()?))
230+
} else if installation_name
231+
.to_str()?
232+
.starts_with("VisualStudioPreview/16.")
233+
{
234+
Some(PathBuf::from(instance.installation_path().ok()?))
230235
} else {
231236
None
232237
}

0 commit comments

Comments
 (0)