File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,19 @@ steps:
8282 command : ci
8383 workingDir : ' $(Build.SourcesDirectory)'
8484
85+ # Workaround for intermittent MicroBuild plugin install collisions
86+ # (e.g. "An item with the specified name ...\\MicroBuild\\Plugins\\Az.Accounts already exists")
87+ - powershell : |
88+ $pluginsRoot = "$(Agent.TempDirectory)/MicroBuild/Plugins"
89+ $azAccountsDir = Join-Path $pluginsRoot "Az.Accounts"
90+
91+ Write-Host "MicroBuild plugins root: $pluginsRoot"
92+ if (Test-Path $azAccountsDir) {
93+ Write-Host "Removing existing MicroBuild plugin directory: $azAccountsDir"
94+ Remove-Item -LiteralPath $azAccountsDir -Recurse -Force -ErrorAction SilentlyContinue
95+ }
96+ displayName: '🧹 Clean MicroBuild Az.Accounts plugin cache'
97+
8598 # ✅ Enable MicroBuildSigningPlugin for PME enforcement (once for all platforms)
8699 - task : MicroBuildSigningPlugin@4
87100 displayName : Enable MicroBuild Signing
You can’t perform that action at this time.
0 commit comments