From 0d2d9610209d580f9c8494b4f2a67f682a2128e8 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Tue, 2 Feb 2016 16:09:58 -0800 Subject: [PATCH] Add build.FullCLR.ps1 script This script builds PowerShell targeting FullCLR, using the same projects as Core PowerShell, and PowerShell on Linux. --- build.FullCLR.ps1 | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 build.FullCLR.ps1 diff --git a/build.FullCLR.ps1 b/build.FullCLR.ps1 new file mode 100644 index 000000000..955603b76 --- /dev/null +++ b/build.FullCLR.ps1 @@ -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 +}