Skip to content

Commit 6c3dfbb

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 7b0d69a commit 6c3dfbb

File tree

1 file changed

+12
-42
lines changed

1 file changed

+12
-42
lines changed

azure-pipelines.yml

Lines changed: 12 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -48,48 +48,6 @@ jobs:
4848
condition: succeeded()
4949
steps:
5050

51-
- task: PowerShell@2
52-
displayName: GetVersion .Desktop
53-
inputs:
54-
filePath: 'build\csproj-version-to-pipeline.ps1'
55-
arguments: '$(patch) $(Build.SourcesDirectory)\src\Generator.Client.Desktop\Generator.Client.Desktop.csproj PackageVersion'
56-
57-
- task: PowerShell@2
58-
displayName: GetVersion .CLI
59-
inputs:
60-
filePath: 'build\csproj-version-to-pipeline.ps1'
61-
arguments: '$(patch) $(Build.SourcesDirectory)\src\Generator.Client.CommandLine\Generator.Client.CommandLine.csproj PackageVersionCLI'
62-
63-
- task: NuGetToolInstaller@1
64-
enabled: false
65-
inputs:
66-
versionSpec: '4.x'
67-
68-
- task: NuGetCommand@2
69-
enabled: false
70-
inputs:
71-
command: 'restore'
72-
restoreSolution: '**/*.sln'
73-
feedsToUse: 'select'
74-
75-
- task: VSBuild@1
76-
enabled: false
77-
inputs:
78-
solution: '**\*.sln'
79-
platform: '$(buildPlatform)'
80-
configuration: '$(buildConfiguration)'
81-
82-
- task: VSTest@2
83-
enabled: false
84-
condition: succeeded()
85-
inputs:
86-
testSelector: 'testAssemblies'
87-
testAssemblyVer2: |
88-
**\*test*.dll
89-
!**\*TestAdapter.dll
90-
!**\obj\**
91-
searchFolder: '$(System.DefaultWorkingDirectory)'
92-
9351
- task: DotNetCoreCLI@2
9452
displayName: dotnet restore
9553
inputs:
@@ -125,6 +83,18 @@ jobs:
12583
verbosityPack: 'Minimal'
12684
#$(buildConfiguration) -o p:VersionPrefix=$(PackageVersionCLI) "
12785

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+
12898
- task: PowerShell@2
12999
condition: and(succeeded(), eq(variables['BUILD_PUBLISH_ARTIFACTS'], 'True'))
130100
displayName: dotnet publish

0 commit comments

Comments
 (0)