This repository has been archived by the owner on Jan 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 120
/
appveyor.yml
50 lines (46 loc) · 1.75 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
version: 1.20.{build}
image: Visual Studio 2019
configuration: Release
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
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)
}
git submodule update --init --recursive
Set-VsixVersion -Version "$($env:APPVEYOR_BUILD_VERSION)" -manifestPath C:\projects\mappinggenerator\MappingGenerator\MappingGenerator\MappingGenerator.Vsix\source.extension.vsixmanifest
nuget restore MappingGenerator
dotnet restore MappingGenerator
build:
project: MappingGenerator\MappingGenerator.sln
verbosity: minimal
after_build:
- ps: Get-ChildItem MappingGenerator\MappingGenerator\MappingGenerator.Vsix\ -Recurse
artifacts:
- path: MappingGenerator\MappingGenerator\MappingGenerator.Vsix\bin\Release\MappingGenerator.vsix
name: MappingGenerator.vsix
- path: MappingGenerator\MappingGenerator\MappingGenerator\bin\Release\MappingGenerator.*.nupkg
name: MappingGenerator.nupkg
- path: MappingGenerator\OnBuildGenerator\bin\Release\MappingGenerator.OnBuildGenerator.*.nupkg
name: MappingGenerator.OnBuildGenerator.nupkg