You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
931 B

  1. parameters:
  2. ProjectName: ''
  3. jobs:
  4. - job: Restore, Build, and Publish
  5. pool:
  6. name: Hosted Ubuntu 1604
  7. steps:
  8. - task: DotNetCoreCLI@2
  9. displayName: 'dotnet restore'
  10. inputs:
  11. command: restore
  12. projects: '**/$(ProjectName).csproj'
  13. feedsToUse: config
  14. nugetConfigPath: NuGet.config
  15. - task: DotNetCoreCLI@2
  16. displayName: 'dotnet build'
  17. inputs:
  18. projects: '**/$(ProjectName).csproj'
  19. arguments: '--configuration Release'
  20. feedsToUse: config
  21. nugetConfigPath: NuGet.config
  22. - task: DotNetCoreCLI@2
  23. displayName: 'dotnet publish'
  24. inputs:
  25. command: publish
  26. publishWebProjects: false
  27. projects: '**/$(ProjectName).csproj'
  28. arguments: '--configuration Release --output $(Build.ArtifactStagingDirectory)/$(ProjectName) /p:MicrosoftNETPlatformLibrary=Microsoft.NETCore.App'
  29. zipAfterPublish: false
  30. modifyOutputPath: false
  31. feedsToUse: config
  32. nugetConfigPath: NuGet.config