-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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: | ||
- master | ||
- develop | ||
|
||
pool: | ||
vmImage: 'windows-latest' | ||
|
||
variables: | ||
solution: '**/*.sln' | ||
buildPlatform: 'Any CPU' | ||
buildConfiguration: 'Release' | ||
${{ if not(eq(variables['Build.SourceBranchName'], 'develop')) }}: | ||
VersionSuffix: '' | ||
${{ if eq(variables['Build.SourceBranchName'], 'develop') }}: | ||
VersionSuffix: '-VersionSuffix beta' | ||
|
||
workspace: | ||
clean: all | ||
|
||
steps: | ||
- task: UseDotNet@2 | ||
inputs: | ||
packageType: 'sdk' | ||
useGlobalJson: true | ||
|
||
- task: PowerShell@2 | ||
inputs: | ||
filePath: 'scripts/build.ps1' | ||
arguments: '$(VersionSuffix)' | ||
|
||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
PathtoPublish: 'artifacts' | ||
ArtifactName: 'drop' | ||
publishLocation: 'Container' |