Skip to content

Commit bb556c4

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 104c8e7 commit bb556c4

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

azure-pipelines.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,19 @@ jobs:
111111
projects: '**/*.csproj'
112112
feedsToUse: 'select'
113113

114+
- task: DotNetCoreCLI@2
115+
displayName: dotnet pack
116+
inputs:
117+
command: 'pack'
118+
packagesToPack: '**/*CommandLine.csproj'
119+
configuration: '$(buildConfiguration)'
120+
packDirectory: '$(Build.ArtifactStagingDirectory)\nupkg'
121+
includesymbols: true
122+
versioningScheme: 'off'
123+
buildProperties: 'PackAsTool=True;VersionPrefix=9.8.7.6;SymbolPackageFormat=snupkg;VersionSuffix=alpha'
124+
verbosityPack: 'Minimal'
125+
#$(buildConfiguration) -o p:VersionPrefix=$(PackageVersionCLI) "
126+
114127
- task: PowerShell@2
115128
condition: and(succeeded(), eq(variables['BUILD_PUBLISH_ARTIFACTS'], 'True'))
116129
displayName: dotnet publish
@@ -151,18 +164,7 @@ jobs:
151164
Invoke-Expression $commandSample
152165
153166
& dotnet pack $(Build.SourcesDirectory)\src\Generator.Client.CommandLine\Generator.Client.CommandLine.csproj -c $(buildConfiguration) -o $(Agent.TempDirectory)\nupkg /p:PackAsTool=true /p:VersionPrefix=9.8.7 /p:SymbolPackageFormat=snupkg /p:IncludeSymbols=True /p:VersionSuffix=alpha
154-
- task: DotNetCoreCLI@2
155-
displayName: dotnet pack
156-
inputs:
157-
command: 'pack'
158-
packagesToPack: '**/*CommandLine.csproj'
159-
configuration: '$(buildConfiguration)'
160-
packDirectory: '$(Build.ArtifactStagingDirectory)\nupkg'
161-
includesymbols: true
162-
versioningScheme: 'off'
163-
buildProperties: 'PackAsTool=True;VersionPrefix=9.8.7.6;SymbolPackageFormat=snupkg;VersionSuffix=alpha'
164-
verbosityPack: 'Minimal'
165-
#$(buildConfiguration) -o p:VersionPrefix=$(PackageVersionCLI) "
167+
166168
- task: CopyFiles@2
167169
condition: and(succeeded(), eq(variables['BUILD_PUBLISH_ARTIFACTS'],'True'))
168170
inputs:

0 commit comments

Comments
 (0)