From f28f70cde6d7488aed58c88b3659aa01df7d5080 Mon Sep 17 00:00:00 2001 From: derek Date: Thu, 2 Dec 2021 11:26:04 +0800 Subject: [PATCH] Refresh module page for hybrid module --- tools/Gen2Master/MoveFromGeneration2Master.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/Gen2Master/MoveFromGeneration2Master.ps1 b/tools/Gen2Master/MoveFromGeneration2Master.ps1 index 5f55e632cca3..5030c2c754e7 100644 --- a/tools/Gen2Master/MoveFromGeneration2Master.ps1 +++ b/tools/Gen2Master/MoveFromGeneration2Master.ps1 @@ -280,7 +280,7 @@ Function Move-Generation2MasterHybrid { #EndRegion # Generate csproj file and add the dependency in the solution file - Copy-Template -SourceName Az.ModuleName.hybrid.csproj -DestPath $DestPath -DestName "Az.$submoduleName.csproj" -RootModuleName $ModuleName -ModuleName $submoduleName + Copy-Template -SourceName Az.ModuleName.hybrid.csproj -DestPath (Join-Path $DestPath $submoduleDir.Name) -DestName "Az.$submoduleName.csproj" -RootModuleName $ModuleName -ModuleName $submoduleName $SolutionPath = Join-Path -Path $DestPath -ChildPath $ModuleName.sln @@ -317,6 +317,11 @@ Function Move-Generation2MasterHybrid { } New-ModuleManifest -Path $DestPsd1Path @Psd1Metadata } + + #update module page + dotnet build "$DestPath\$ModuleName.sln" + Import-Module "$DestPath\..\..\artifacts\Debug\Az.$ModuleName\Az.$ModuleName.psd1" + Update-MarkdownHelpModule -Path "$DestPath\$ModuleName\help" -RefreshModulePage -AlphabeticParamsOrder -UseFullTypeName -ExcludeDontShow } }