1- version : 0.25 .{build}
1+ version : 0.30 .{build}
22
33pull_requests :
44 do_not_increment_build_number : true
55
66configuration : Release
77
8- shallow_clone : true
8+ # shallow_clone: true
9+ clone_depth : 10
910
1011image : Visual Studio 2017
1112
12- init :
13- - ps : >
14- iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
13+ install :
14+ - choco install gitversion.portable -pre -y
1515
16- if($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_TAG_NAME.StartsWith("v") -eq $true) {
17-
18- Set-AppVeyorBuildVariable -Name APPVEYOR_BUILD_VERSION -Value $env:APPVEYOR_REPO_TAG_NAME.Substring(1)
19-
20- }
21-
16+ # init:
17+ # - ps: >
18+ # iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
19+ #
20+ # if($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_TAG_NAME.StartsWith("v") -eq $true) {
21+ #
22+ # Set-AppVeyorBuildVariable -Name APPVEYOR_BUILD_VERSION -Value $env:APPVEYOR_REPO_TAG_NAME.Substring(1)
23+ #
24+ # }
25+ #
2226
2327assembly_info :
24- patch : true
25- file : ' **\AssemblyInfo.*'
26- assembly_version : ' {version}'
27- assembly_file_version : ' {version}'
28- assembly_informational_version : ' {version}'
28+ patch : false
2929
3030environment :
3131 GOOGLE_API_KEY :
@@ -34,13 +34,17 @@ environment:
3434 secure : tXLj55KTiLnAgoQp6lXCHg==
3535
3636before_build :
37+ # - nuget restore
38+ - ps : gitversion /l console /output buildserver /updateAssemblyInfo
3739 - msbuild src\GoogleMapsForNET.sln /t:restore
3840
39- build_script :
40- - cmd : msbuild src\GoogleMapsForNET.sln /t:build /p:Configuration=Release /verbosity:minimal
41+ build :
42+ project : src\GoogleMapsForNET.sln
4143
4244after_build :
43- - cmd : nuget pack gmaps-api-net.nuspec -version %APPVEYOR_BUILD_VERSION%
45+ # - cmd: nuget pack gmaps-api-net.nuspec -version %APPVEYOR_BUILD_VERSION%
46+ - cmd : ECHO nuget pack gmaps-api-net.nuspec -version "%GitVersion_NuGetVersion%"
47+ - cmd : nuget pack gmaps-api-net.nuspec -version "%GitVersion_NuGetVersion%"
4448
4549test_script :
4650- ps : >-
@@ -65,7 +69,7 @@ deploy:
6569 secure : 2SwDMmXZZtgoLWsldKZ8GCu9rZXpO5quTYtSNJQSeeiqDjnmo0OfutNVcH3jsfpj
6670 artifact : NugetPackage
6771 on :
68- APPVEYOR_REPO_TAG : true
72+ APPVEYOR_REPO_TAG : true1
6973- provider : GitHub
7074 tag : v$(APPVEYOR_BUILD_VERSION)
7175 auth_token :
@@ -74,7 +78,7 @@ deploy:
7478 draft : true
7579 force_update : true
7680 on :
77- APPVEYOR_REPO_TAG : true
81+ APPVEYOR_REPO_TAG : true1
7882
7983notifications :
8084- provider : Email
@@ -84,7 +88,3 @@ notifications:
8488 on_build_success : true
8589 on_build_failure : true
8690 on_build_status_changed : true
87-
88- # Temporary workaround for AppVeyor -> NuGet connectivity issues
89- hosts :
90- api.nuget.org : 93.184.221.200
0 commit comments