-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathappveyor.yml
70 lines (56 loc) · 2.11 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# version format
version: 0.3.{build}
# you can use {branch} name in version format too
# version: 1.0.{build}-{branch}
# Do not build feature branch with open Pull Requests
skip_branch_with_pr: true
skip_commits:
message: /NO_BUILD/
image: Visual Studio 2019
# debugging appveyor.yml with RDP to the build server
# init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
# to avoid a build error "project.assets.json not found"
- dotnet restore ./src
# Build settings, not to be confused with "before_build" and "after_build".
# "project" is relative to the original build directory and not influenced by directory changes in "before_build".
build:
parallel: true # enable MSBuild parallel builds
project: src/NTextCat.sln # path to Visual Studio solution or project
publish_nuget: true # package projects with .nuspec files and push to artifacts
publish_nuget_symbols: true # generate and publish NuGet symbol packages
use_snupkg_format: true
verbosity: minimal
deploy:
- provider: NuGet
skip_symbols: false # generate and publish NuGet symbol packages
api_key:
secure: HsYsJEJ+1QjI7I2ZTGzCtwqohFlYK67CUq4xemWtdBfhjOpwdWD7sTNVbcG0Lg32
# debugging appveyor.yml with RDP to the build server
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
for:
-
branches:
only:
- master
configuration: Release
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
-
configuration: Debug
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}-{branch}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}-{branch}'