代码拉取完成,页面将自动刷新
variables:
MajorVersion: 1
MinorVersion: 1
PatchVersion: 0
BuildPlatform: 'Any CPU'
BuildConfiguration: 'Release'
DevEnvDir: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\'
name: $(MajorVersion).$(MinorVersion).$(PatchVersion)$(Rev:.r)
pool:
vmImage: windows-2019
trigger:
- master
steps:
- task: Assembly-Info-NetFramework@2
displayName: 'Set Assembly Manifest Data'
inputs:
FileNames: '**\AssemblyInfo.cs'
VersionNumber: '$(build.buildnumber)'
FileVersionNumber: '$(build.buildnumber)'
- task: geeklearningio.gl-vsts-tasks-file-patch.xml-patch-task.XmlPatch@4
displayName: 'Update VSIX version'
inputs:
XmlWorkingDir: GitFlowAVH
XmlTargetFilters: source.extension.vsixmanifest
Namespaces: 'vsix => http://schemas.microsoft.com/developer/vsx-schema/2011'
JsonPatchContent: '= /vsix:PackageManifest/vsix:Metadata/vsix:Identity/@Version=> "$(build.buildNumber)"'
OutputPatchFile: true
FailIfNoPatchApplied: true
- task: NuGetToolInstaller@0
displayName: 'Use NuGet 5.4.0'
inputs:
versionSpec: 5.4.0
- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
restoreSolution: GitFlowAVH.sln
- task: VSBuild@1
displayName: 'Build solution GitFlowAVH.sln'
inputs:
solution: GitFlowAVH.sln
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
- task: CmdLine@1
displayName: 'type files.json'
inputs:
filename: type
arguments: GitFlowAVH\obj\Release\files.json
- task: VSTest@2
displayName: 'VsTest - testAssemblies'
inputs:
testAssemblyVer2: |
**\$(BuildConfiguration)\*test*.dll
!**\obj\**
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
testFiltercriteria: FullyQualifiedName~GitFlowWrapperTests
enabled: false
- task: CopyFiles@2
displayName: 'Copy marketplace files'
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: |
**\bin\$(BuildConfiguration)\*.vsix
README.md
extension.manifest.json
TargetFolder: '$(build.artifactstagingdirectory)'
flattenFolders: true
- task: CopyFiles@2
displayName: 'Copy images'
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: |
Images\*.*
TargetFolder: '$(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: GitFlowAVH.VSIX'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: GitFlowAVH.VSIX
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。