Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure pipelines #4

Merged
merged 13 commits into from
Mar 6, 2020
55 changes: 55 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# ASP.NET
# Build and test ASP.NET projects.
# Add steps that publish symbols, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4

trigger:
branches:
include:
- '*'

pool:
vmImage: 'windows-latest'

variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
frameworkVersion: '1.4.0'

steps:
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: './Ocaramba.Templates.VSIX/packages.config'
feedsToUse: 'select'
restoreDirectory: '../packages'

- task: Assembly-Info-NetFramework@2
inputs:
Path: '$(Build.SourcesDirectory)'
FileNames: |
**\AssemblyInfo.*
InsertAttributes: false
FileEncoding: 'auto'
WriteBOM: false
Configuration: '$(buildConfiguration)'
VersionNumber: '$(frameworkVersion)'
FileVersionNumber: '$(frameworkVersion).$(Build.BuildId)'
InformationalVersion: '$(frameworkVersion)'
LogLevel: 'verbose'
FailOnWarning: false
DisableTelemetry: false

- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/v:minimal'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'

- task: PublishPipelineArtifact@1
inputs:
targetPath: './Ocaramba.Templates.VSIX/bin/Release/Ocaramba.Templates.vsix'
artifact: 'Template'
publishLocation: 'pipeline'