001_settings.ps1 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #**************************************************************************#
  2. #** QUADARAX DEPLOYMENT SCRIPTS **#
  3. #** File: 001_settings.ps1 **#
  4. #** Description: Defines project related constants and settings. This **#
  5. #** script is loaded inside 000 script **#
  6. #** Version: 1.0. **#
  7. #** Updated: 24.7.2019 **#
  8. #**************************************************************************#
  9. if ($settingsWasLoaded -eq $true)
  10. {
  11. Break
  12. }
  13. # Check if bootstrap run first section
  14. try {
  15. if (!($global:SpaceScriptLoaded -eq $true)){
  16. Write-Host "Must be run 000_bootstrap.ps1 first!" -ForegroundColor Red
  17. Break
  18. }
  19. }
  20. catch {
  21. Write-Host "Must be run 000_bootstrap.ps1 first!" -ForegroundColor Red
  22. }
  23. # Project related settings
  24. $solutionName = "QConsole.sln"
  25. $projectDir = Get-Location
  26. $projectDir = Split-Path -parent $projectDir
  27. $projectOutputDir = $projectDir + "\@Release"
  28. # Tools & system paths
  29. $pathMsBuild = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe"
  30. # Builds
  31. $buildCfgDebug = "Debug"
  32. $buildCfgRelease = "Release"
  33. $buildCfgAll = "All"
  34. $buildTrgClean = "Clean"
  35. $buildTrgRebuild = "Rebuild"
  36. $buildTrgPublish = "Publish"
  37. # Aliases
  38. Set-Alias msbuild $pathMsBuild
  39. Write-Host "Settings was loaded succesfully." -ForegroundColor DarkGray
  40. $settingsWasLoaded = $true