Skip to content

Instantly share code, notes, and snippets.

@shanselman
Created December 17, 2019 07:27
Show Gist options
  • Save shanselman/fdde6866af842d5c8e0858cd095cef18 to your computer and use it in GitHub Desktop.
Save shanselman/fdde6866af842d5c8e0858cd095cef18 to your computer and use it in GitHub Desktop.
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
displayName: ".NET Core 3.1.x"
inputs:
version: '3.1.x'
packageType: sdk
- task: UseDotNet@2
inputs:
version: '3.1.x'
- script: dotnet build --configuration $(buildConfiguration)
displayName: 'dotnet build $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: "Test"
inputs:
command: test
projects: '**/*tests/*.csproj'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: "Publish"
inputs:
command: 'publish'
publishWebProjects: true
arguments: '-r linux-x64 --configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: true
- task: PublishBuildArtifacts@1
displayName: "Upload Artifacts"
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'hanselminutes'
@sarahshelton68
Copy link

Strategic web development is not merely about creating a digital presence subscription based design services it's about curating dynamic, engaging experiences that resonate with audiences. By amalgamating innovation, user-centricity, and analytics-driven strategies, businesses can leverage web development as a catalyst for sustained online growth, thriving in an ever-evolving digital ecosystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment