Skip to content

Commit

Permalink
build: repaired build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
payetools committed Sep 11, 2024
1 parent 6896a06 commit 9a01d63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
:; exit $?

@ECHO OFF

powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0build.ps1" %*
9 changes: 4 additions & 5 deletions build/scripts/build.ps1 → build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ Write-Output "PowerShell $($PSVersionTable.PSEdition) version $($PSVersionTable.

Set-StrictMode -Version 2.0; $ErrorActionPreference = "Stop"; $ConfirmPreference = "None"; trap { Write-Error $_ -ErrorAction Continue; exit 1 }
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
$SolutionRoot = (Get-Item $PSScriptRoot).Parent.Parent.FullName
Write-Output $SolutionRoot

###########################################################################
# CONFIGURATION
###########################################################################

$BuildProjectFile = "$SolutionRoot\build\_build.csproj"
$TempDirectory = "$SolutionRoot\\.nuke\temp"
$BuildProjectFile = "$PSScriptRoot\build\_build.csproj"
$TempDirectory = "$PSScriptRoot\\.nuke\temp"

$DotNetGlobalFile = "$SolutionRoot\\global.json"
$DotNetGlobalFile = "$PSScriptRoot\\global.json"
$DotNetInstallUrl = "https://dot.net/v1/dotnet-install.ps1"
$DotNetChannel = "STS"

Expand Down

0 comments on commit 9a01d63

Please sign in to comment.