-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
36 lines (36 loc) · 1.29 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
version: 1.0.{build}
image: Visual Studio 2017
configuration: Release
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
before_build:
- ps: >-
function Set-VsixVersion {
param(
[Parameter(Mandatory=$true)]
[string]$manifestPath,
[Parameter(Mandatory=$true)]
[string]$Version
)
$manifestXml = [xml](Get-Content $manifestPath -Raw)
$manifestXml.PackageManifest.Metadata.Identity.Version = $Version
$manifestXml.save($manifestPath)
}
Set-VsixVersion -Version "$($env:APPVEYOR_BUILD_VERSION)" -manifestPath C:\projects\exceptionanalyzer\src\ExceptionAnalyzer\ExceptionAnalyzer.Vsix\source.extension.vsixmanifest
- cmd: git submodule update --init --recursive
- cmd: nuget restore src
- cmd: dotnet restore src
build:
project: src\ExceptionAnalyzer.sln
verbosity: minimal
artifacts:
- path: src\ExceptionAnalyzer\ExceptionAnalyzer.Vsix\bin\Release\SmartanAlyzers.ExceptionAnalyzer.vsix
name: SmartanAlyzers.ExceptionAnalyzer.vsix
- path: src\ExceptionAnalyzer\ExceptionAnalyzer\bin\Release\SmartanAlyzers.ExceptionAnalyzer.*.nupkg
name: SmartanAlyzers.ExceptionAnalyzer.nupkg