Skip to content

Commit 0400d0e

Browse files
committed
utils: use Sytsem.IO.FileInfo for file path parameters
This adds additional testing/validation for the parameters when invoking `build.ps1` and improves the tab completion support as well.
1 parent dff88f9 commit 0400d0e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

utils/build.ps1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,11 @@ PS> .\Build.ps1
109109
PS> .\Build.ps1 -WindowsSDKs x64 -ProductVersion 1.2.3 -Test foundation,xctest
110110
#>
111111
[CmdletBinding(PositionalBinding = $false)]
112-
param(
113-
[string] $SourceCache = "S:\SourceCache",
114-
[string] $BinaryCache = "S:\b",
115-
[string] $ImageRoot = "S:",
112+
param
113+
(
114+
[System.IO.FileInfo] $SourceCache = "S:\SourceCache",
115+
[System.IO.FileInfo] $BinaryCache = "S:\b",
116+
[System.IO.FileInfo] $ImageRoot = "S:",
116117
[ValidateSet("codeview", "dwarf")]
117118
[string] $CDebugFormat = "dwarf",
118119
[ValidateSet("codeview", "dwarf")]

0 commit comments

Comments
 (0)