Skip to content

Commit b1e89a9

Browse files
committed
Upgrade Hangfire.Build to 0.5.0
1 parent 0f6bab0 commit b1e89a9

4 files changed

Lines changed: 26 additions & 15 deletions

File tree

.nuget/packages.config

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="7-Zip.CommandLine" version="18.1.0" />
4-
<package id="Hangfire.Build" version="0.2.6" />
3+
<package id="Hangfire.Build" version="0.5.0" />
54
<package id="psake" version="4.4.1" />
65
</packages>

.nuget/packages.lock.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": 1,
3+
"dependencies": {
4+
"Any,Version=v0.0": {
5+
"Hangfire.Build": {
6+
"type": "Direct",
7+
"requested": "[0.5.0, 0.5.0]",
8+
"resolved": "0.5.0",
9+
"contentHash": "4yRCdMaDr6cyFRmCvpFO8kBMV57KPOofugaHOsjkDEDw+G/BCGWOdrpXfkAeTEtZBPUv2jS0PYmVNK5680KxXQ=="
10+
},
11+
"psake": {
12+
"type": "Direct",
13+
"requested": "[4.4.1, 4.4.1]",
14+
"resolved": "4.4.1",
15+
"contentHash": "Hn5kdGPEoapi+wAAjaGjKEZVnuYp7fUrPK3IivLYG6Bn4adhd8l+KXXPMEmte41RmrLvfV7XGZa9KsSTc0gjDA=="
16+
}
17+
}
18+
}
19+
}

build.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
@echo off
2-
.nuget\NuGet.exe install .nuget\packages.config -OutputDirectory packages
3-
powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "& {Import-Module '.\packages\psake.*\tools\psake.psm1'; invoke-psake .\psake-project.ps1 %*; if ($LastExitCode -and $LastExitCode -ne 0) {write-host "ERROR CODE: $LastExitCode" -fore RED; exit $lastexitcode} }"
2+
.nuget\NuGet.exe restore .nuget\packages.config -OutputDirectory packages -UseLockFile -LockedMode -NoHttpCache || exit /b 666
3+
pwsh.exe -NoProfile -ExecutionPolicy RemoteSigned -Command "& {Import-Module '.\packages\psake.*\tools\psake.psm1'; invoke-psake .\psake-project.ps1 %*; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }; }"
4+
exit /B %errorlevel%

psake-project.ps1

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
1-
Properties {
2-
$solution = "HangFire.Azure.ServiceBusQueue.sln"
3-
}
4-
5-
Include "packages\Hangfire.Build.0.2.6\tools\psake-common.ps1"
1+
Include "packages\Hangfire.Build.0.5.0\tools\psake-common.ps1"
62

73
Task Default -Depends Collect
84

9-
Task CompileCore -Depends Clean {
10-
Exec { dotnet build -c Release }
11-
}
12-
13-
Task Collect -Depends CompileCore -Description "Copy all artifacts to the build folder." {
5+
Task Collect -Depends Compile -Description "Copy all artifacts to the build folder." {
146
Collect-Assembly "Hangfire.Azure.ServiceBusQueue" "net461"
157
Collect-Assembly "Hangfire.Azure.ServiceBusQueue" "netstandard2.0"
168
}
179

1810
Task Pack -Depends Collect -Description "Create NuGet packages and archive files." {
1911
$version = Get-PackageVersion
2012

21-
Create-Archive "Hangfire.Azure.ServiceBusQueue-$version"
2213
Create-Package "Hangfire.Azure.ServiceBusQueue" $version
14+
Create-Archive "Hangfire.Azure.ServiceBusQueue-$version"
2315
}

0 commit comments

Comments
 (0)