Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pool:
- name: Hosted VS2017
- demands:
- - msbuild
- - visualstudio
- #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
- #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
- #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
- #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
- #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
- #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
- steps:
- - task: NuGetToolInstaller@0
- displayName: 'Use NuGet 4.4.1'
- inputs:
- versionSpec: 4.4.1
- - task: NuGetCommand@2
- displayName: 'NuGet restore'
- inputs:
- restoreSolution: '$(Parameters.solution)'
- - task: VSBuild@1
- displayName: 'Build solution'
- inputs:
- solution: '$(Parameters.solution)'
- msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\"'
- platform: '$(BuildPlatform)'
- configuration: '$(BuildConfiguration)'
- - task: PublishSymbols@2
- displayName: 'Publish symbols path'
- inputs:
- SearchPattern: '**\bin\**\*.pdb'
- PublishSymbols: false
- continueOnError: true
- - task: CopyFiles@2
- displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
- inputs:
- SourceFolder: '$(Agent.BuildDirectory)'
- Contents: '**\bin\*\$(BuildConfiguration)\**'
- TargetFolder: '$(Build.ArtifactStagingDirectory)'
- - task: PublishBuildArtifacts@1
- displayName: 'Publish Artifact'
- inputs:
- ArtifactName: '$(Parameters.ArtifactName)'
- condition: succeededOrFailed()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement