From 08139d2aa9bc9042d4f9704f786cb65dfdd1cf2a Mon Sep 17 00:00:00 2001 From: Yeming Liu <11371776+isra-fel@users.noreply.github.com> Date: Wed, 12 Apr 2023 10:55:47 +0800 Subject: [PATCH] Update RunVersionController.ps1 (#21186) --- tools/RunVersionController.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/RunVersionController.ps1 b/tools/RunVersionController.ps1 index 96cde6cd7097..3f95a7c516ef 100644 --- a/tools/RunVersionController.ps1 +++ b/tools/RunVersionController.ps1 @@ -296,6 +296,9 @@ function Bump-AzVersion Update-ModuleManifest -Path "$PSScriptRoot\Az\Az.psd1" -ModuleVersion $newVersion -ReleaseNotes $releaseNotes Update-ChangeLog -Content $changeLog -RootPath $rootPath + + New-CommandMappingFile + return $versionBump } @@ -336,6 +339,7 @@ function Update-AzPreview function New-CommandMappingFile { + # Regenerate the cmdlet-to-module mappings for the recommendation feature of uninstalled modules $MappingsFilePath = "$PSScriptRoot\..\src\Accounts\Accounts\Utilities\CommandMappings.json" Write-Host "Generating command mapping file at $MappingsFilePath" $content = Get-Content $MappingsFilePath | ConvertFrom-Json -Depth 10 @@ -448,7 +452,5 @@ switch ($PSCmdlet.ParameterSetName) # Refresh AzPreview.psd1 Update-AzPreview -New-CommandMappingFile - # Generate dotnet csv &$PSScriptRoot/Docs/GenerateDotNetCsv.ps1 -FeedPsd1FullPath "$PSScriptRoot\AzPreview\AzPreview.psd1"