File tree 1 file changed +17
-2
lines changed
1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,14 @@ stages:
59
59
secureFile : ' WinQuickLook.pfx'
60
60
61
61
- powershell : ' echo "##vso[task.setvariable variable=ApplicationVersion]$($env:Build_SourceBranchName.Substring(1))"'
62
- displayName : ' Set ApplicationVersion'
62
+
63
+ - powershell : |
64
+ [Reflection.Assembly]::LoadWithPartialName("System.Xml.Linq")
65
+ $path = "WinQuickLook.Package/package.appxmanifest"
66
+ $doc = [System.Xml.Linq.XDocument]::Load($path)
67
+ $xName = [System.Xml.Linq.XName]"{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Identity"
68
+ $doc.Root.Element($xName).Attribute("Version").Value = "$(ApplicationVersion).0";
69
+ $doc.Save($path)
63
70
64
71
- task : UseDotNet@2
65
72
inputs :
@@ -81,7 +88,15 @@ stages:
81
88
inputs :
82
89
solution : ' **/*.sln'
83
90
configuration : $(BuildConfiguration)
84
- msbuildArguments : /p:Version="$(ApplicationVersion)" /p:UapAppxPackageBuildMode=CI /p:AppxBundlePlatforms="$(BundlePlatforms)" /p:AppxPackageDir="$(Build.SourcesDirectory)/packed" /p:AppxBundle=Always /p:AppxPackageSigningEnabled=true /p:PackageCertificateThumbprint="" /p:PackageCertificateKeyFile="$(signingCert.secureFilePath)" /p:PackageCertificatePassword="$(PfxPassword)"
91
+ msbuildArguments : ' /p:Version="$(ApplicationVersion)"
92
+ /p:UapAppxPackageBuildMode=CI
93
+ /p:AppxBundlePlatforms="$(BundlePlatforms)"
94
+ /p:AppxPackageDir="$(Build.SourcesDirectory)/packed"
95
+ /p:AppxBundle=Always
96
+ /p:AppxPackageSigningEnabled=true
97
+ /p:PackageCertificateThumbprint=""
98
+ /p:PackageCertificateKeyFile="$(signingCert.secureFilePath)"
99
+ /p:PackageCertificatePassword="$(PfxPassword)"'
85
100
86
101
- publish : packed
87
102
artifact : msix
You can’t perform that action at this time.
0 commit comments