Skip to content

Commit 25d60ef

Browse files
authored
Check and install ModuleBuilder if missing
Signed-off-by: Zacgoose <107489668+Zacgoose@users.noreply.github.com>
1 parent eaaa1ca commit 25d60ef

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Tools/Build-DevApiModules.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ $repoRoot = Split-Path -Parent $toolsRoot
55
$modulesRoot = Join-Path $repoRoot 'Modules'
66
$outputRoot = Join-Path $repoRoot 'Output'
77

8+
if (-not (Get-Module -ListAvailable -Name ModuleBuilder)) {
9+
Install-Module -Name ModuleBuilder -Scope CurrentUser -Force
10+
}
11+
Import-Module -Name ModuleBuilder -Force
12+
813
Write-Host "Repo root: $repoRoot"
914
Set-Location -Path $repoRoot
1015

0 commit comments

Comments
 (0)