-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
65 lines (57 loc) · 1.77 KB
/
azure-pipelines.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
variables:
Configuration: 'Release'
Solution: '**/*.sln'
BuildPlatform: 'Any CPU'
pool:
vmImage: 'windows-latest'
stages:
- stage: RestoreAndBuildSolution
displayName: "RESTORE & BUILD SOLUTION"
dependsOn: []
jobs:
- job: BuildProject
displayName: "BUILD PROJECT"
steps:
- checkout: self
displayName: "CHECKOUT REPOSITORY"
lfs: true
- task: NuGetToolInstaller@1
displayName: "INSTALL LATEST NUGET"
inputs:
checkLatest: true
- task: NuGetCommand@2
displayName: "RESTORE SOLUTION"
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
feedsToUse: 'select'
- task: VSBuild@1
displayName: "BUILD SOLUTION"
inputs:
vsVersion: '17.0'
clean: true
logFileVerbosity: detailed
solution: '$(Solution)'
platform: '$(BuildPlatform)'
configuration: '$(Configuration)'
- task: CopyFiles@2
displayName: "COPY .vsix TO VsixArtifact"
inputs:
SourceFolder: 'SolutionSpecificVSSettings/bin/$(Configuration)'
Contents: 'SolutionSpecificVSSettings.vsix'
TargetFolder: '$(Build.ArtifactStagingDirectory)/VsixArtifact'
OverWrite: true
- task: CopyFiles@2
displayName: "COPY MARKETPLACE FILES"
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: |
README.md
extension.manifest.json
TargetFolder: '$(Build.ArtifactStagingDirectory)/VsixArtifact'
OverWrite: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'VsixArtifact'
publishLocation: 'Container'