Skip to content

Commit ecde7d3

Browse files
authored
Appveyor fixes (#13)
- Added missing properties attribute for auto CI patching. - Cleaned up some powershell script code.
1 parent 92a749a commit ecde7d3

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

appveyor.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,22 @@
66
# - To publish a live NuGet package, create a tag on master branch.
77
#
88

9-
109
version: '{build}.0.0-dev'
1110
configuration: Release
1211
os: Visual Studio 2015
1312
pull_requests:
1413
do_not_increment_build_number: true
1514

16-
# Override the 'version' if this is a GH-tag-commit.
17-
# If a Tag, then we only pull down master.
15+
# Override the 'version' if this is a GH-tag-commit -or- this is a custom branch (i.e not 'master').
1816
init:
19-
- ps: if ($env:APPVEYOR_REPO_TAG -eq $TRUE) { if ($env:APPVEYOR_REPO_BRANCH -ne 'master') { Write-Host " !! Commit is Tagged and branch is '$env:APPVEYOR_REPO_BRANCH' - forcing branch to 'master'." -ForegroundColor Red; $env:APPVEYOR_REPO_BRANCH = 'master' } Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME" }
20-
- ps: iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/PureKrome/0f79e25693d574807939/raw/4a00b443bd9ad908768593244fc08061ec8e1ccc/appveyor-build-info.ps'))
21-
17+
- ps: |
18+
if ($env:APPVEYOR_REPO_TAG -eq $TRUE -and $env:APPVEYOR_REPO_BRANCH -eq 'master')
19+
{
20+
Write-Host " !! Commit is Tagged and branch is 'master' - forcing build version to tag-value." -ForegroundColor Red;
21+
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
22+
}
23+
iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/PureKrome/0f79e25693d574807939/raw/f5b40256fc2ca77d49f1c7773d28406152544c1e/appveyor-build-info.ps'))
24+
2225
before_build:
2326
- nuget restore
2427

@@ -55,4 +58,4 @@ deploy:
5558
appveyor_repo_tag: true
5659

5760
cache:
58-
- packages -> **\packages.config
61+
- packages -> **\packages.config

src/HttpClient.Helpers/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
//
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("2.3.0.0")]
36-
[assembly: AssemblyFileVersion("2.3.0.0")]
34+
[assembly: AssemblyVersion("1.0.0.0")]
35+
[assembly: AssemblyFileVersion("1.0.0.0")]
36+
[assembly: AssemblyInformationalVersionAttribute("1.0")]

0 commit comments

Comments
 (0)