@@ -70,30 +70,30 @@ jobs:
7070 feedsToUse : ' select'
7171
7272 - task : DotNetCoreCLI@2
73- displayName : dotnet pack
73+ displayName : dotnet pack release
74+ condition : and(succeeded(), eq(variables['BUILD_IS_RELEASE'], 'True'))
7475 inputs :
7576 command : ' pack'
7677 packagesToPack : ' **/*CommandLine.csproj'
7778 configuration : ' $(buildConfiguration)'
7879 packDirectory : ' $(Build.ArtifactStagingDirectory)\nupkg'
7980 includesymbols : true
8081 versioningScheme : ' off'
81- buildProperties : ' PackAsTool=True;VersionPrefix=9.8.7.6; SymbolPackageFormat=snupkg;VersionSuffix=alpha'
82+ buildProperties : ' PackAsTool=True;SymbolPackageFormat=snupkg;VersionSuffix=alpha'
8283 verbosityPack : ' Minimal'
83- # $(buildConfiguration) -o p:VersionPrefix=$(PackageVersionCLI) "
84-
85- - task : PowerShell@2
86- displayName : GetVersion .Desktop
87- inputs :
88- filePath : ' build\csproj-version-to-pipeline.ps1'
89- arguments : ' $(patch) $(Build.SourcesDirectory)\src\Generator.Client.Desktop\Generator.Client.Desktop.csproj PackageVersion'
9084
91- - task : PowerShell@2
92- displayName : GetVersion .CLI
85+ - task : DotNetCoreCLI@2
86+ displayName : dotnet pack alpha
87+ condition : and(succeeded(), eq(variables['BUILD_IS_ALPHA'], 'True'))
9388 inputs :
94- filePath : ' build\csproj-version-to-pipeline.ps1'
95- arguments : ' $(patch) $(Build.SourcesDirectory)\src\Generator.Client.CommandLine\Generator.Client.CommandLine.csproj PackageVersionCLI'
96-
89+ command : ' pack'
90+ packagesToPack : ' **/*CommandLine.csproj'
91+ configuration : ' $(buildConfiguration)'
92+ packDirectory : ' $(Build.ArtifactStagingDirectory)\nupkg'
93+ includesymbols : true
94+ versioningScheme : ' off'
95+ buildProperties : ' PackAsTool=True;SymbolPackageFormat=snupkg'
96+ verbosityPack : ' Minimal'
9797
9898 - task : PowerShell@2
9999 condition : and(succeeded(), eq(variables['BUILD_PUBLISH_ARTIFACTS'], 'True'))
@@ -110,32 +110,6 @@ jobs:
110110 & dotnet publish $(Build.SourcesDirectory)\src\Generator.Client.CommandLine\Generator.Client.CommandLine.csproj -r win-x64 -f netcoreapp2.1 -c $(buildConfiguration) --self-contained true -o $(Build.ArtifactStagingDirectory)\cli-netcore2.1-standalone
111111 & dotnet publish $(Build.SourcesDirectory)\src\Generator.Client.CommandLine\Generator.Client.CommandLine.csproj -r win-x64 -f netcoreapp2.1 -c $(buildConfiguration) --self-contained false -o $(Build.ArtifactStagingDirectory)\cli-netcore2.1-shared
112112
113- - task : PowerShell@2
114- condition : and(succeeded(), eq(variables['BUILD_IS_RELEASE'], 'True'))
115- displayName : dotnet pack release
116- inputs :
117- targetType : ' inline'
118- script : |
119- mkdir $(Build.ArtifactStagingDirectory)\nupkg
120- Write-Host $(PackageVersion)
121- Write-Host $(PackageVersionCLI)
122- & dotnet pack $(Build.SourcesDirectory)\src\Generator.Client.CommandLine\Generator.Client.CommandLine.csproj -c $(buildConfiguration) -o $(Build.ArtifactStagingDirectory)\nupkg /p:PackAsTool=true /p:VersionPrefix=$(PackageVersionCLI) /p:SymbolPackageFormat=snupkg /p:IncludeSymbols=True --version-suffix=beta
123-
124- - task : PowerShell@2
125- condition : and(succeeded(), eq(variables['BUILD_IS_ALPHA'], 'True'))
126- displayName : dotnet pack alpha
127- inputs :
128- targetType : ' inline'
129- script : |
130- dotnet --version
131- mkdir $(Build.ArtifactStagingDirectory)\nupkg
132- Write-Host $(PackageVersionCLI)
133- $commandSample = "dotnet pack $(Build.SourcesDirectory)\src\Generator.Client.CommandLine\Generator.Client.CommandLine.csproj -c $(buildConfiguration) -o $(Build.ArtifactStagingDirectory)\nupkg /p:PackAsTool=true /p:VersionPrefix=$(PackageVersionCLI) /p:SymbolPackageFormat=snupkg /p:IncludeSymbols=True /p:VersionSuffix=alpha"
134- Write-Host $commandSample
135- Invoke-Expression $commandSample
136-
137- & 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
138-
139113 - task : CopyFiles@2
140114 condition : and(succeeded(), eq(variables['BUILD_PUBLISH_ARTIFACTS'],'True'))
141115 inputs :
0 commit comments