20
20
. PARAMETER ExcludeComponents
21
21
The names of the components to exclude when generating solution and project references. Defaults to none.
22
22
23
+ . PARAMETER WinUIMajorVersion
24
+ Specifies the WinUI major version to use when building an Uno head. Also decides the package id and dependency variant. The default value is '2'.
25
+
23
26
. PARAMETER UseDiagnostics
24
27
Add extra diagnostic output to running slngen, such as a binlog, etc...
25
28
32
35
Date: April 27, 2022
33
36
#>
34
37
Param (
35
- [Parameter (HelpMessage = " The heads to include for building the sample gallery and tests." , ParameterSetName = " MultiTargets" )]
36
38
[ValidateSet (' all' , ' wasm' , ' uwp' , ' wasdk' , ' wpf' , ' linuxgtk' , ' macos' , ' ios' , ' android' )]
37
39
[Alias (" mt" )]
38
- [string []]$MultiTargets = @ (' all ' ),
40
+ [string []]$MultiTargets = @ (' uwp ' , ' wasm ' , ' wasdk ' ),
39
41
40
- [Parameter (HelpMessage = " The target frameworks to disable." )]
41
42
[ValidateSet (' wasm' , ' uwp' , ' wasdk' , ' wpf' , ' linuxgtk' , ' macos' , ' ios' , ' android' , ' netstandard' )]
42
- [string []]$ExcludeMultiTargets = @ () # default settings
43
+ [string []]$ExcludeMultiTargets = @ (), # default settings
43
44
44
- [Parameter (HelpMessage = " The names of the components to generate project and solution references for. Defaults to all components." )]
45
45
[Alias (" c" )]
46
46
[string []]$Components = @ (' all' ),
47
47
48
- [Parameter (HelpMessage = " The names of the components to exclude when generating solution and project references." )]
48
+ [Alias (" winui" )]
49
+ [int ]$WinUIMajorVersion = 2 ,
50
+
49
51
[string []]$ExcludeComponents ,
50
52
51
- [Parameter (HelpMessage = " Add extra diagnostic output to slngen generator." )]
52
53
[switch ]$UseDiagnostics = $false
53
54
)
54
55
@@ -66,6 +67,7 @@ $MultiTargets = $MultiTargets | Where-Object { $_ -notin $ExcludeMultiTargets }
66
67
# Generate required props for "All" solution.
67
68
& ./ tooling/ MultiTarget/ GenerateAllProjectReferences.ps1 - MultiTargets $MultiTargets - Components $Components - ExcludeComponents $ExcludeComponents
68
69
& ./ tooling/ MultiTarget/ UseTargetFrameworks.ps1 - MultiTargets $MultiTargets
70
+ & ./ tooling/ MultiTarget/ UseUnoWinUI.ps1 $WinUIMajorVersion
69
71
70
72
# Set up constant values
71
73
$generatedSolutionFilePath = ' CommunityToolkit.AllComponents.sln'
0 commit comments