-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.ps1
More file actions
24 lines (18 loc) · 869 Bytes
/
build.ps1
File metadata and controls
24 lines (18 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$module = 'ATEMModule'
Push-Location $PSScriptroot
dotnet build $PSScriptRoot\src -o $PSScriptRoot\output\$module\bin
Copy-Item "$PSScriptRoot\$module\*" "$PSScriptRoot\output\$module" -Recurse -Force
# start a new PS Session and load module
#Import-Module "$PSScriptRoot\Output\$module\$module.psd1"
# Debug module
# https://docs.microsoft.com/en-us/powershell/scripting/dev-cross-plat/vscode/using-vscode-for-debugging-compiled-cmdlets?view=powershell-7.1
#Invoke-Pester "$PSScriptRoot\Tests"
# For help files - look into https://github.com/red-gate/XmlDoc2CmdletDoc
# Create Module manifest (one time. Need to update exported functions)
$manifestSplat = @{
Path = ".\$module\$module.psd1"
Author = 'Ian Morrish'
NestedModules = @('bin\ATEMModule.dll')
RootModule = "$module.psm1"
FunctionsToExport = @()
}