-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines-2.yml
47 lines (39 loc) · 1.22 KB
/
azure-pipelines-2.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
# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- development
name: $(Build.DefinitionName)-$(Year:yy).$(Month).$(DayOfYear)$(Rev:.rr)
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
steps:
#Restore packages with the .NET Core CLI task
- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
inputs:
command: 'restore'
projects: '**/*.csproj'
includeNuGetOrg: true
# Build project
- task: DotNetCoreCLI@2
displayName: "dotnet build solution projects"
inputs:
command: 'build'
projects: '**/*.csproj'
# Publish projects to specified folder
- task: DotNetCoreCLI@2
displayName: "publish api project"
inputs:
command: 'publish'
publishWebProjects: false
projects: '**/PViMS.API/*.csproj'
arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: true
- task: PublishBuildArtifacts@1
displayName: "Upload Artifacts"
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'drop'