Add build.FullCLR.ps1 script

This script builds PowerShell targeting FullCLR, using the same projects
as Core PowerShell, and PowerShell on Linux.
This commit is contained in:
Sergei Vorobev 2016-02-02 16:09:58 -08:00 committed by Andrew Schwartzmeyer
parent 39153321d4
commit 0d2d961020

34
build.FullCLR.ps1 Normal file
View file

@ -0,0 +1,34 @@
$origPWD = $pwd
try
{
$BINFULL = "$pwd/binFull"
$BUILD = "$pwd/build"
mkdir $BINFULL -ErrorAction SilentlyContinue
# Publish PowerShell
cd src\Microsoft.PowerShell.ConsoleHost
dotnet publish --framework dnx451 --output $BINFULL
cd ..\..\src\Microsoft.PowerShell.Commands.Utility
dotnet publish --framework dnx451 --output $BINFULL
cd ..\..\src\Microsoft.PowerShell.Commands.Management
dotnet publish --framework dnx451 --output $BINFULL
# Temporary fix for dotnet publish
if (Test-Path $BINFULL/Debug/dnx451) { cp $BINFULL/Debug/dnx451/* $BINFULL }
# build native host
mkdir $build -ErrorAction SilentlyContinue
cd $build
cmake ..\src\powershell-native
msbuild powershell.sln
cp -rec Debug\* $BINFULL
}
finally
{
cd $origPWD
}