#**************************************************************************# #** QUADARAX DEPLOYMENT SCRIPTS **# #** File: 001_settings.ps1 **# #** Description: Defines project related constants and settings. This **# #** script is loaded inside 000 script **# #** Version: 1.0. **# #** Updated: 24.7.2019 **# #**************************************************************************# if ($settingsWasLoaded -eq $true) { Break } # Check if bootstrap run first section try { if (!($global:SpaceScriptLoaded -eq $true)){ Write-Host "Must be run 000_bootstrap.ps1 first!" -ForegroundColor Red Break } } catch { Write-Host "Must be run 000_bootstrap.ps1 first!" -ForegroundColor Red } # Project related settings $solutionName = "QConsole.sln" $projectDir = Get-Location $projectDir = Split-Path -parent $projectDir $projectOutputDir = $projectDir + "\@Release" # Tools & system paths $pathMsBuild = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe" $path7zip = "$projectDir\..\Assets\7z.exe" # Builds $buildCfgDebug = "Debug" $buildCfgRelease = "Release" $buildCfgAll = "All" $buildTrgClean = "Clean" $buildTrgRebuild = "Rebuild" $buildTrgPublish = "Publish" # Zip $zipNamePrefix = "ProjectZip" # Aliases Set-Alias msbuild $pathMsBuild Set-Alias 7zip $path7zip Write-Host "Settings was loaded succesfully." -ForegroundColor DarkGray $settingsWasLoaded = $true