Skip to content

Commit f87af3f

Browse files
committed
chore: modify build scripts to use powershell core
1 parent d7f7c78 commit f87af3f

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

build/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@ECHO OFF
2-
PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';& '%~dp0build.ps1' %*; exit $LASTEXITCODE"
2+
pwsh -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';& '%~dp0build.ps1' %*; exit $LASTEXITCODE"

build/build.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env pwsh
22

3+
#Requires -PSEdition Core
4+
35
$DotNetInstallerUri = 'https://dot.net/v1/dotnet-install.ps1';
46
$BuildPath = Split-Path $MyInvocation.MyCommand.Path -Parent
57
$PSScriptRoot = Split-Path $PSScriptRoot -Parent
@@ -20,9 +22,6 @@ if ($PSVersionTable.PSEdition -ne 'Core') {
2022
}
2123
}
2224

23-
# Temporary remove curl alias.
24-
Remove-Item alias:curl
25-
2625
###########################################################################
2726
# INSTALL .NET CORE CLI
2827
###########################################################################

docs/articles/contributing/building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Once all the necessary tools are in place, building is trivial. Simply open solu
1717
The build currently depends on the following prerequisites:
1818

1919
- Windows:
20-
- PowerShell version 5 or higher
20+
- PowerShell Core
2121
- MSBuild version 15.1 or higher
2222
- .NET Framework 4.6 or higher
2323

0 commit comments

Comments
 (0)