-
Notifications
You must be signed in to change notification settings - Fork 6
/
appveyor.yml
40 lines (32 loc) · 1.31 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
image: Visual Studio 2017
version: 3.0.{build}
install:
# - ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
before_build:
- ps: write-host Build v. $env:appveyor_build_version
- nuget restore
# - ps: Vsix-IncrementVsixVersion | Vsix-UpdateBuildVersion
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
build_script:
- msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
- ps: (Get-Content AspDotnetVueJs.nuspec).replace('{{version}}', $env:appveyor_build_version ) | Set-Content AspDotnetVueJs.nuspec
- nuget pack
#Nuget auto-packaging can also be done cref: https://www.appveyor.com/docs/deployment/nuget/
after_build:
- ps: Get-ChildItem .\*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
- ps: Get-ChildItem .\*.nupkg | % { dotnet new -i $_.FullName }
- ps: mkdir demo.dotnetvue
- ps: cd demo.dotnetvue
- ps: dotnet new vuejs
- npm install
- ps: dotnet publish demo.dotnetvue.csproj -c release -r win-x86 -o ./output --self-contained
artifacts:
- path: demo.dotnetvue\output
name: dotnet-vuejs