PowerShell/build.ps1
Andrew Schwartzmeyer 74a3855602 Add Modules to tree for content
Same as ps1xml files: already deployed in the wild, i.e. not source
code. Allows to remove recursive copies from build scripts and rely just
on CLI's behavior.
2016-02-10 12:48:46 -08:00

15 lines
344 B
PowerShell

$BIN = "${pwd}/bin"
mkdir $BIN/Modules -ErrorAction SilentlyContinue
# Deploy PowerShell modules
cd $BIN/Modules
robocopy ../../test/Pester Pester /s /e
cd ../..
# Publish PowerShell
cd src/Microsoft.PowerShell.Linux.Host
dotnet publish --framework dnxcore50 --output $BIN
# Copy files that dotnet-publish does not currently deploy
cd ../..