Skip to content

Commit aaa0074

Browse files
committedJun 4, 2024··
Switch to a modern PowerShell 7+ to speed up SignPath installation
1 parent 5c16a63 commit aaa0074

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed
 

‎.nuget/packages.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Hangfire.Build" version="0.4.3" />
3+
<package id="Hangfire.Build" version="0.4.4" />
44
<package id="ILRepack" version="2.0.27" />
55
<package id="psake" version="4.4.1" />
66
<package id="RazorGenerator.MsBuild" version="2.5.0" />

‎.nuget/packages.lock.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"Any,Version=v0.0": {
55
"Hangfire.Build": {
66
"type": "Direct",
7-
"requested": "[0.4.3, 0.4.3]",
8-
"resolved": "0.4.3",
9-
"contentHash": "Wp5SPwtlX3vXRVVGRhNKAh2kNShMqSLpmAGosgb3VUF9nxEJcEkOq0nv56p4dHwh7EGaJM35HiOD+CvUeJkLRw=="
7+
"requested": "[0.4.4, 0.4.4]",
8+
"resolved": "0.4.4",
9+
"contentHash": "CCHrwgG0oSr5uPSx6ONcDpSAYkcUyEkd5EC/qS6Mb1//8dmaxYzfPP/GYGUdKoKgHI5J2/NqsrBP3MprstLPIg=="
1010
},
1111
"ILRepack": {
1212
"type": "Direct",

‎appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ services:
3737

3838
# Installing MSMQ manually to avoid "Cannot initialize 'msmq' service handler" error
3939
before_build:
40-
- cmd: powershell Import-Module ServerManager; Add-WindowsFeature MSMQ; net start msmq
41-
- ps: Install-Module -Name SignPath
40+
- cmd: pwsh Import-Module ServerManager; Add-WindowsFeature MSMQ; net start msmq
41+
- pwsh: Install-PSResource -Name SignPath -TrustRepository
4242
- sh: nuget locals all -clear
4343

4444
build_script:

‎build.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@echo off
22
.nuget\NuGet.exe restore .nuget\packages.config -OutputDirectory packages -UseLockFile -LockedMode -NoCache || exit /b 666
3-
powershell.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 }; }"
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 }; }"
44
exit /B %errorlevel%

‎psake-project.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Include "packages\Hangfire.Build.0.4.3\tools\psake-common.ps1"
1+
Include "packages\Hangfire.Build.0.4.4\tools\psake-common.ps1"
22

33
Task Default -Depends Pack
44

0 commit comments

Comments
 (0)
Please sign in to comment.