Skip to content

Commit 85fe1fb

Browse files
committed
Moved PS requirement to PS3
1 parent caa2d78 commit 85fe1fb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ A task for replacing REGULAR EXPRESSIONS in your files with variables and text i
77
* Azure DevOps - Pipelines
88
* Team Foundation Server 2015 Update 3 and higher ([How to install extensions in TFS](https://www.visualstudio.com/en-us/docs/marketplace/get-tfs-extensions))
99
* **Only Windows** - sorry, this is due to the lack of Powershell support of the underlying task FX platform :-(
10+
* Build Agents w. Powershell 3.0 or higher
1011

1112
## Usage
1213

RegexReplace/RegexReplace.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ try {
1717
Import-VstsLocStrings "$PSScriptRoot\task.json"
1818

1919
# Check Powershell Version
20-
if ($PSVersionTable.PSCompatibleVersions -notcontains '4.0')
20+
if ($PSVersionTable.PSCompatibleVersions -notcontains '3.0')
2121
{
22-
Write-VstsTaskError "This task requires Powershell 4.0 or later"
22+
Write-VstsSetResult -Result Failed -Message "This task requires Powershell 3.0 or later"
2323
exit;
2424
}
2525

0 commit comments

Comments
 (0)