@@ -4,7 +4,7 @@ variables:
44- name : TestProject
55 value : ' **/*UnitTests.csproj'
66
7- name : v $(Major).$(Minor).$(Patch).$(Build)
7+ name : $(Major).$(Minor).$(Patch).$(Build)
88
99trigger :
1010- main
@@ -29,13 +29,20 @@ steps:
2929 inputs :
3030 codeCoverageTool : ' Cobertura'
3131 summaryFileLocation : $(Agent.TempDirectory)/*/coverage.cobertura.xml # using ** instead of * finds duplicate coverage files
32+ # Workaraound for the pack command not accepting arguments
33+ # https://github.com/microsoft/azure-pipelines-tasks/issues/11640
3234 - task : DotNetCoreCLI@2
33- displayName : " Pack Project "
35+ displayName : Pack
3436 inputs :
35- command : ' pack'
36- packagesToPack : ' **/*.csproj'
37- versioningScheme : byEnvVar
38- versionEnvVar : PackageVersion
37+ command : custom
38+ custom : pack
39+ arguments : >
40+ RfmOta.sln
41+ --output $(Build.ArtifactStagingDirectory)
42+ -p:PackageVersion=$(PackageVersion)
43+ -p:Configuration=$(BuildConfiguration)
44+ -p:Version=$(PackageVersion)
45+ -p:AssemblyVersion=$(Build.BuildNumber)
3946 - task : GitHubRelease@1
4047 displayName : " Publish Relase To GitHub"
4148 inputs :
4451 action : ' create'
4552 target : ' $(Build.SourceVersion)'
4653 tagSource : ' userSpecifiedTag'
47- tag : ' $(Build.BuildNumber)'
48- title : ' $(Build.BuildNumber) - $(BuildConfiguration) - $(Build.SourceBranchName)'
54+ tag : ' v $(Build.BuildNumber)'
55+ title : ' v $(Build.BuildNumber) - $(BuildConfiguration) - $(Build.SourceBranchName)'
4956 changeLogCompareToRelease : ' lastFullRelease'
5057 changeLogType : ' commitBased'
0 commit comments