Skip to content

Commit 3b399c3

Browse files
authored
Merge branch 'main' into mstest-sdk
2 parents aee74f8 + 028fe9c commit 3b399c3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Build-Toolkit-Components.ps1

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Specifies the date for versioning in 'YYMMDD' format. The default value is the current date.
1616
1717
.PARAMETER PreviewVersion
18-
Specifies the preview version to use if packaging is enabled. Appended with a dash after the version number (formatted Version-PreviewVersion). This parameter is required when NupkgOutput is supplied.
18+
Specifies the preview version to use if packaging is enabled. Appended with a dash after the version number (formatted Version-PreviewVersion). This parameter is optional.
1919
2020
.PARAMETER NupkgOutput
2121
Specifies the output directory for .nupkg files. This parameter is optional. When supplied, the components will also be packed and nupkg files will be output to the specified directory.
@@ -114,11 +114,6 @@ if ($ExcludeComponents) {
114114
$Components = $Components | Where-Object { $_ -notin $ExcludeComponents }
115115
}
116116

117-
# Check if NupkgOutput is supplied without PreviewVersion
118-
if ($NupkgOutput -and -not $PreviewVersion) {
119-
throw "PreviewVersion is required when NupkgOutput is supplied."
120-
}
121-
122117
# Use the specified MultiTarget TFM and WinUI version
123118
& $PSScriptRoot\MultiTarget\UseTargetFrameworks.ps1 $MultiTargets
124119
& $PSScriptRoot\MultiTarget\UseUnoWinUI.ps1 $WinUIMajorVersion

0 commit comments

Comments
 (0)