Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. trigger:
  2. - master
  3.  
  4. pool:
  5. vmImage: 'VS2017-Win2016'
  6.  
  7. variables:
  8. solution: '**/*.sln'
  9. buildPlatform: 'Any CPU'
  10. buildConfiguration: 'Release'
  11.  
  12. steps:
  13. - task: NuGetToolInstaller@0
  14. displayName: 'Use NuGet 4.4.1'
  15. inputs:
  16. versionSpec: 4.4.1
  17.  
  18. - task: NuGetCommand@2
  19. displayName: 'NuGet restore'
  20. inputs:
  21. restoreSolution: '$(Parameters.solution)'
  22. feedsToUse: config
  23. nugetConfigPath: .nuget/NuGet.Config
  24.  
  25. - task: VSBuild@1
  26. displayName: 'Run Build on solution.'
  27. inputs:
  28. solution: '$(solution)'
  29. msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)" /p:BclBuildImported=Ignore'
  30. platform: '$(buildPlatform)'
  31. configuration: '$(buildConfiguration)'
  32. logFileVerbosity: 'diagnostic'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement