Skip to content

Commit e9ff128

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent c6c3257 commit e9ff128

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

azure-pipelines.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ variables:
3838
value: $[eq(variables['Build.SourceBranch'], 'refs/heads/master')]
3939

4040
pool:
41-
#vmImage: 'ubuntu-latest'
4241
vmImage: 'windows-2019'
4342

4443
jobs:
@@ -70,6 +69,18 @@ jobs:
7069
projects: '**/*.csproj'
7170
feedsToUse: 'select'
7271

72+
- task: PowerShell@2
73+
displayName: GetVersion .Desktop
74+
inputs:
75+
filePath: 'build\csproj-version-to-pipeline.ps1'
76+
arguments: '$(patch) $(Build.SourcesDirectory)\src\Generator.Client.Desktop\Generator.Client.Desktop.csproj PackageVersion'
77+
78+
- task: PowerShell@2
79+
displayName: GetVersion .CLI
80+
inputs:
81+
filePath: 'build\csproj-version-to-pipeline.ps1'
82+
arguments: '$(patch) $(Build.SourcesDirectory)\src\Generator.Client.CommandLine\Generator.Client.CommandLine.csproj PackageVersionCLI'
83+
7384
- task: DotNetCoreCLI@2
7485
displayName: dotnet pack
7586
inputs:
@@ -83,18 +94,6 @@ jobs:
8394
verbosityPack: 'Minimal'
8495
#$(buildConfiguration) -o p:VersionPrefix=$(PackageVersionCLI) "
8596

86-
- task: PowerShell@2
87-
displayName: GetVersion .Desktop
88-
inputs:
89-
filePath: 'build\csproj-version-to-pipeline.ps1'
90-
arguments: '$(patch) $(Build.SourcesDirectory)\src\Generator.Client.Desktop\Generator.Client.Desktop.csproj PackageVersion'
91-
92-
- task: PowerShell@2
93-
displayName: GetVersion .CLI
94-
inputs:
95-
filePath: 'build\csproj-version-to-pipeline.ps1'
96-
arguments: '$(patch) $(Build.SourcesDirectory)\src\Generator.Client.CommandLine\Generator.Client.CommandLine.csproj PackageVersionCLI'
97-
9897
- task: PowerShell@2
9998
condition: and(succeeded(), eq(variables['BUILD_PUBLISH_ARTIFACTS'], 'True'))
10099
displayName: dotnet publish

0 commit comments

Comments
 (0)