2015-12-26 22:44:43 +00:00
|
|
|
#Requires -Version 3
|
2015-12-27 17:18:31 +00:00
|
|
|
<#
|
|
|
|
.SYNOPSIS
|
|
|
|
Compiles the binaries from source codes.
|
|
|
|
#>
|
2015-12-26 22:44:43 +00:00
|
|
|
|
|
|
|
$solutionDir = Join-Path $PSScriptRoot '..\Src'
|
|
|
|
$solutionFile = Join-Path $solutionDir 'DSInternals.sln'
|
|
|
|
|
2015-12-27 17:18:31 +00:00
|
|
|
# We need the Invoke-MSBuild module to always invoke the latest msbuild.exe.
|
|
|
|
$modulePath = Join-Path $PSScriptRoot 'Modules\Invoke-MSBuild'
|
2015-12-26 22:44:43 +00:00
|
|
|
Import-Module $modulePath -ErrorAction Stop
|
|
|
|
|
2015-12-27 17:18:31 +00:00
|
|
|
$targets = 'Clean','Build'
|
|
|
|
$configurations = 'Release' #,'Debug'
|
|
|
|
$platforms = 'x86','x64'
|
2015-12-26 22:44:43 +00:00
|
|
|
|
2015-12-27 17:18:31 +00:00
|
|
|
# Run all targets with all configurations and platforms
|
|
|
|
foreach($target in $targets)
|
|
|
|
{
|
|
|
|
foreach($configuration in $configurations)
|
|
|
|
{
|
|
|
|
foreach($platform in $platforms)
|
|
|
|
{
|
|
|
|
Write-Host "$($target)ing $configuration|$platform..."
|
|
|
|
Invoke-MsBuild -MsBuildParameters "/target:$target /property:Configuration=$configuration;Platform=$platform" `
|
|
|
|
-Path $solutionFile -ShowBuildWindow
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|