Skip to content

Commit 028fe9c

Browse files
Build-Toolkit-Components.ps1 to not require PreviewVersion parameter (#207)
* Build-Toolkit-Components.ps1 to not require PreviewVersion parameter This is blocking release where we don't have a PreviewVersion postfix to our build number. * Build-Toolkit-Components.ps1 ensure we don't add Postfix flag when not provided to msbuild * Revert "Build-Toolkit-Components.ps1 ensure we don't add Postfix flag when not provided to msbuild" This reverts commit ba0e00a.
1 parent 7d5d479 commit 028fe9c

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)