Skip to content

Commit

Permalink
Fix e2e project issues
Browse files Browse the repository at this point in the history
  • Loading branch information
liliankasem committed Jan 31, 2025
1 parent 3319d6a commit 531de84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.41" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.0" />
<PackageReference Condition="$(TestBuild) != 'true'" Include="Microsoft.Azure.Functions.Worker" Version="2.0.0" />
</ItemGroup>
Expand Down
6 changes: 4 additions & 2 deletions tools/devpack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
# Packs the SDK locally, and (by default) updates the Sample to use this package, then builds.
# Specify --E2E to instead target the E2E test app.

$buildNumber = "local" + [System.DateTime]::Now.ToString("yyyyMMddHHmm")
# Use metadata to provide a version that is always head of the latest stable package
# E.g: Nuget packages will be named 2.0.0 with the version metedata set to 2.0.0+202501311440-local
$buildNumber = "+" + [System.DateTime]::Now.ToString("yyyyMMddHHmm")

Write-Host
Write-Host "Building packages with BuildNumber $buildNumber"
Expand Down Expand Up @@ -49,7 +51,7 @@ if (!(Test-Path $localPack))
Write-Host
Write-Host "---Updating projects with local SDK pack---"
Write-Host "Packing Core .NET Worker projects to $localPack"
& "dotnet" "pack" $sdkProject "-p:PackageOutputPath=$localPack" "-nologo" "-p:Version=2.0.1" "-p:VersionSuffix=$buildNumber" $AdditionalPackArgs
& "dotnet" "pack" $sdkProject "-p:PackageOutputPath=$localPack" "-nologo" "-p:VersionSuffix=$buildNumber" $AdditionalPackArgs
Write-Host

foreach ($project in $projects) {
Expand Down

0 comments on commit 531de84

Please sign in to comment.