Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
Fix wrong encoding constructors parameters (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
qetza committed Jul 25, 2016
1 parent 278d775 commit 9d95178
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# Replace tokens task for Visual Studio Team Services
This extension contains a build/release task for VS Team Services to replace tokens in files with variable values.
This extension contains a build/release task for VS Team Services to replace tokens in files with variable values.

##How to use the build/release task
1. After installing the extension, upload your project to VSTS.
2. Go to your VSTS project, click on the **Release** tab, and create a new release definition.
3. Click **Add tasks** and select **Replace Tokens** from the **Utility** category.
4. Configure the step.
3 changes: 3 additions & 0 deletions docs/extension-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ This extension contains a build/release task for VS Team Services to replace tok
- [View or contribute to the source code](https://github.com/qetza/vsts-replacetokens-task/)

##Release notes
**New in 1.3.1**
- Fix wrong encoding constructors parameters.

**New in 1.3.0**
- Replaced parameter 'Fail on missing' with 'Action' in 'Missing variables' group.
- Add 'Keep token' parameter in 'Missing variables' group.
Expand Down
6 changes: 3 additions & 3 deletions task/functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ Function Get-Encoding
switch ($Name)
{
"Ascii" { return New-Object System.Text.ASCIIEncoding }
"UTF7" { return New-Object System.Text.UTF7Encoding($WriteBOM) }
"UTF7" { return New-Object System.Text.UTF7Encoding }
"UTF8" { return New-Object System.Text.UTF8Encoding($WriteBOM) }
"Unicode" { return New-Object System.Text.UnicodeEncoding($WriteBOM) }
"Unicode" { return New-Object System.Text.UnicodeEncoding($false, $WriteBOM) }
"BigEndianUnicode" { return New-Object System.Text.UnicodeEncoding($true, $WriteBOM) }
"UTF32" { return New-Object System.Text.UTF32Encoding($WriteBOM) }
"UTF32" { return New-Object System.Text.UTF32Encoding($false, $WriteBOM) }
"BigEndianUTF32" { return New-Object System.Text.UTF32Encoding($true, $WriteBOM) }
}
}
Expand Down
2 changes: 1 addition & 1 deletion task/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"version": {
"Major": 1,
"Minor": 3,
"Patch": 0
"Patch": 1
},
"minimumAgentVersion": "1.92.0",
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "replacetokens",
"name": "Replace Tokens",
"version": "1.3.0",
"version": "1.3.1",
"public": true,
"publisher": "qetza",
"targets": [
Expand Down

0 comments on commit 9d95178

Please sign in to comment.