Skip to content

Commit

Permalink
Add BuildConfiguration build variable
Browse files Browse the repository at this point in the history
  • Loading branch information
skylarnam committed Feb 28, 2023
1 parent 9981912 commit fa328f0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ parameters:
BuildConfiguration: Release

steps:
- powershell: |
dotnet tool install --tool-path "${env:AGENT_TOOLSDIRECTORY}\nbgv" nbgv
$version = & "${env:AGENT_TOOLSDIRECTORY}\nbgv\nbgv.exe" get-version --variable SemVer1
& "${env:AGENT_TOOLSDIRECTORY}\nbgv\nbgv.exe" cloud --version $version
displayName: 'Set cloud build version'

- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
Expand Down Expand Up @@ -39,7 +33,7 @@ steps:
zipAfterPublish: false

- script: |
choco pack pkg\VSConfigFinder\VSConfigFinder.nuspec --out "VSConfigFinder\bin\${{ parameters.BuildConfiguration }}" --version "%NBGV_NuGetPackageVersion%" "Configuration=${{ parameters.BuildConfiguration }}" "CommitId=$(Build.SourceVersion)" "Tag=$(Build.BuildNumber)"
choco pack pkg\VSConfigFinder\VSConfigFinder.nuspec --out "VSConfigFinder\bin\${{ parameters.BuildConfiguration }}" --version "$(Build.GitBuildVersion)" "Configuration=${{ parameters.BuildConfiguration }}" "CommitId=$(Build.SourceVersion)" "Tag=$(Build.BuildNumber)"
displayName: Package
workingDirectory: $(Build.SourcesDirectory)

Expand Down

0 comments on commit fa328f0

Please sign in to comment.