You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow combining -Azure, -Unbranded, and -Mgmt in RegenPreview.ps1 (#10531)
`RegenPreview.ps1` rejected `-Azure`, `-Unbranded`, and `-Mgmt` as
mutually exclusive, even though there's no reason a single run can't
build and repackage multiple emitter artifacts.
### Changes
- **Drop the mutual-exclusivity guard** between `-Azure`, `-Unbranded`,
and `-Mgmt`. `-Spector` and OpenAI-mode exclusivity rules are unchanged.
- **Display strings** for the "Mode:" banner and the "Regenerating N
libraries (…)" line now render any combination of flags. Single-flag
wording is preserved.
- **Help comments** (`.DESCRIPTION`, the three `.PARAMETER` blocks, and
a new `.EXAMPLE`) updated to document combinable flags.
No changes were needed in the build/pack pipeline itself —
`Filter-LibrariesByGenerator` already accumulates matches per switch,
and the downstream `needsUnbranded` / `needsAzure` / `needsMgmt`
analysis derives required builds from the union of selected libraries.
So e.g.:
```powershell
.\RegenPreview.ps1 -SdkLibraryRepoPath C:\repos\azure-sdk-for-net -Azure -Unbranded
```
now builds and repackages both the unbranded and Azure emitter artifacts
(plus their NuGet generator framework packages) in a single run and
regenerates libraries from both generators.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
Copy file name to clipboardExpand all lines: packages/http-client-csharp/eng/scripts/RegenPreview.ps1
+30-30Lines changed: 30 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -35,9 +35,10 @@
35
35
6. Restores all modified artifacts to original state
36
36
37
37
Generator Filtering (Azure SDK Mode only):
38
-
- Use -Azure to regenerate only Azure-branded libraries (@azure-typespec/http-client-csharp)
39
-
- Use -Unbranded to regenerate only unbranded libraries (@typespec/http-client-csharp)
40
-
- Use -Mgmt to regenerate only management plane libraries (@azure-typespec/http-client-csharp-mgmt)
38
+
- Use -Azure to regenerate Azure-branded libraries (@azure-typespec/http-client-csharp)
39
+
- Use -Unbranded to regenerate unbranded libraries (@typespec/http-client-csharp)
40
+
- Use -Mgmt to regenerate management plane libraries (@azure-typespec/http-client-csharp-mgmt)
41
+
- Filters can be combined (e.g. -Azure -Unbranded) to regenerate libraries from multiple generators
41
42
- Omit all filter parameters to regenerate all libraries (default)
42
43
- Use -Select for interactive selection (can be combined with generator filters)
43
44
@@ -51,18 +52,18 @@
51
52
Not applicable in OpenAI mode.
52
53
53
54
.PARAMETERAzure
54
-
Optional. Azure SDK Mode only. When specified, only regenerates libraries using the Azure generator (@azure-typespec/http-client-csharp).
55
-
Mutually exclusive with Unbranded andMgmt parameters.
55
+
Optional. Azure SDK Mode only. When specified, regenerates libraries using the Azure generator (@azure-typespec/http-client-csharp).
56
+
Can be combined with -Unbranded and/or -Mgmt to regenerate libraries from multiple generators.
56
57
Not applicable in OpenAI mode.
57
58
58
59
.PARAMETERUnbranded
59
-
Optional. Azure SDK Mode only. When specified, only regenerates libraries using the unbranded generator (@typespec/http-client-csharp).
60
-
Mutually exclusive with Azure andMgmt parameters.
60
+
Optional. Azure SDK Mode only. When specified, regenerates libraries using the unbranded generator (@typespec/http-client-csharp).
61
+
Can be combined with -Azure and/or -Mgmt to regenerate libraries from multiple generators.
61
62
Not applicable in OpenAI mode.
62
63
63
64
.PARAMETERMgmt
64
-
Optional. Azure SDK Mode only. When specified, only regenerates libraries using the management plane generator (@azure-typespec/http-client-csharp-mgmt).
65
-
Mutually exclusive with Azure andUnbranded parameters.
65
+
Optional. Azure SDK Mode only. When specified, regenerates libraries using the management plane generator (@azure-typespec/http-client-csharp-mgmt).
66
+
Can be combined with -Azure and/or -Unbranded to regenerate libraries from multiple generators.
66
67
If no generator filter is specified, all libraries are regenerated.
0 commit comments