Skip to content

Commit

Permalink
Resolve-Path/Join-Path
Browse files Browse the repository at this point in the history
  • Loading branch information
andystaples committed Jan 29, 2025
1 parent 7a97a00 commit 8778637
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/e2e/Tests/build-e2e-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,20 @@ else

Write-Host "Removing old packages from test app"

$AppPackageLocation = Resolve-Path "$E2EAppProjectDirectory/packages"
$AppPackageLocation = Join-Path $E2EAppProjectDirectory 'packages'
if (!(Test-Path $AppPackageLocation)) {
New-Item -Path $AppPackageLocation -ItemType Directory -ErrorAction SilentlyContinue
}
$AppPackageLocation = Resolve-Path $AppPackageLocation
Get-ChildItem -Path $AppPackageLocation -Include * -File -Recurse | ForEach-Object { $_.Delete()}

Write-Host "Building WebJobs extension project"

$BuildOutputLocation = Resolve-Path "$WebJobsExtensionProjectDirectory/out"
$BuildOutputLocation = Join-Path $WebJobsExtensionProjectDirectory 'out'
if (!(Test-Path $BuildOutputLocation)) {
New-Item -Path $BuildOutputLocation -ItemType Directory -ErrorAction SilentlyContinue
}
$BuildOutputLocation = Resolve-Path $BuildOutputLocation
Get-ChildItem -Path $BuildOutputLocation -Include * -File -Recurse | ForEach-Object { $_.Delete()}
dotnet build -c Debug "$WebJobsExtensionProjectDirectory\WebJobs.Extensions.DurableTask.csproj" --output $BuildOutputLocation

Expand Down

0 comments on commit 8778637

Please sign in to comment.