Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. pool:
  2. name: Hosted VS2017
  3. demands:
  4. - msbuild
  5. - visualstudio
  6.  
  7. #Your build pipeline references an undefined variable named ‘Parameters.solution’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
  8. #Your build pipeline references an undefined variable named ‘Parameters.solution’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
  9. #Your build pipeline references the ‘BuildPlatform’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
  10. #Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
  11. #Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
  12. #Your build pipeline references an undefined variable named ‘Parameters.ArtifactName’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
  13.  
  14. steps:
  15. - task: NuGetToolInstaller@0
  16. displayName: 'Use NuGet 4.4.1'
  17. inputs:
  18. versionSpec: 4.4.1
  19.  
  20. - task: NuGetCommand@2
  21. displayName: 'NuGet restore'
  22. inputs:
  23. restoreSolution: '$(Parameters.solution)'
  24.  
  25. - task: VSBuild@1
  26. displayName: 'Build solution'
  27. inputs:
  28. solution: '$(Parameters.solution)'
  29. msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\"'
  30. platform: '$(BuildPlatform)'
  31. configuration: '$(BuildConfiguration)'
  32.  
  33. - task: PublishSymbols@2
  34. displayName: 'Publish symbols path'
  35. inputs:
  36. SearchPattern: '**\bin\**\*.pdb'
  37. PublishSymbols: false
  38. continueOnError: true
  39.  
  40. - task: CopyFiles@2
  41. displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
  42. inputs:
  43. SourceFolder: '$(Agent.BuildDirectory)'
  44. Contents: '**\bin\*\$(BuildConfiguration)\**'
  45. TargetFolder: '$(Build.ArtifactStagingDirectory)'
  46.  
  47. - task: PublishBuildArtifacts@1
  48. displayName: 'Publish Artifact'
  49. inputs:
  50. ArtifactName: '$(Parameters.ArtifactName)'
  51. condition: succeededOrFailed()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement