File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
modules/virtual_environments/nu_msvs Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ A module for Using Microsoft Visual Studio (MSVS) command line tools from Nushel
3
3
4
4
5
5
## Prerequisites
6
- - [ nushell] ( https://github.com/nushell/nushell ) >= 0.83 .0
6
+ - [ nushell] ( https://github.com/nushell/nushell ) >= 0.91 .0
7
7
- [ vswhere] ( https://github.com/microsoft/vswhere ) standalone or comes with VS
8
8
9
9
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ export-env {
14
14
$env .MSVS_MSVC_ROOT = (
15
15
if not ($" ($env .MSVS_ROOT )/VC/Tools/MSVC/" | path exists ) {
16
16
" "
17
- } else if (ls $" ($env .MSVS_ROOT )/VC/Tools/MSVC/*" | is-empty ) {
17
+ } else if (ls ( $" ($env .MSVS_ROOT )/VC/Tools/MSVC/*" | into glob ) | is-empty ) {
18
18
" "
19
19
} else {
20
- ((ls $" ($env .MSVS_ROOT )/VC/Tools/MSVC/*" ).name.0 | str replace - a ' \\' ' /' )
20
+ ((ls ( $" ($env .MSVS_ROOT )/VC/Tools/MSVC/*" | into glob ) ).name.0 | str replace - a ' \\' ' /' )
21
21
})
22
22
23
23
$env .MSVS_MSDK_ROOT = (registry query -- hklm ' SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0' InstallationFolder | get value )
You can’t perform that action at this time.
0 commit comments