@@ -114,13 +114,13 @@ jobs:
114
114
script : |
115
115
for /f %%a in ('dir /b /a:d %localappdata%\Microsoft\VisualStudio\17*') do echo UsePreviews=True>%localappdata%\Microsoft\VisualStudio\%%a\sdk.txt
116
116
117
- - task : MSBuild@1
117
+ - task : NuGetToolInstaller@1
118
+
119
+ - task : NuGetCommand@2
118
120
inputs :
119
- platform : ' x64'
120
- solution : ' $(solution)'
121
- configuration : ' $(sideloadBuildConfiguration)'
122
- msbuildArguments : ' /t:restore /p:Configuration="$(sideloadBuildConfiguration)";Platform="$(buildPlatform)";PublishReadyToRun=true'
123
- maximumCpuCount : true
121
+ feedsToUse : config
122
+ nugetConfigPath : nuget.config
123
+ restoreSolution : ' $(solution)'
124
124
125
125
- task : DownloadSecureFile@1
126
126
name : caCertificate
@@ -173,12 +173,14 @@ jobs:
173
173
$xmlDoc.Package.Identity.Publisher="CN=53EC4384-7F5B-4CF6-8C23-513FFE9D1AB7"
174
174
$xmlDoc.Package.Properties.DisplayName="Files"
175
175
$xmlDoc.Package.Applications.Application.VisualElements.DisplayName="Files"
176
+
176
177
# Removes packageManagement from Store release
177
178
$nsmgr = New-Object System.Xml.XmlNamespaceManager($xmlDoc.NameTable)
178
179
$nsmgr.AddNamespace("pkg", "http://schemas.microsoft.com/appx/manifest/foundation/windows10")
179
180
$nsmgr.AddNamespace("rescap", "http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities")
180
181
$pm = $xmlDoc.SelectSingleNode("/pkg:Package/pkg:Capabilities/rescap:Capability[@Name='packageManagement']", $nsmgr)
181
182
$xmlDoc.Package.Capabilities.RemoveChild($pm)
183
+
182
184
$xmlDoc.Save('$(Build.SourcesDirectory)\src\Files.App (Package)\Package.appxmanifest')
183
185
failOnStderr : true
184
186
@@ -232,13 +234,13 @@ jobs:
232
234
script : |
233
235
for /f %%a in ('dir /b /a:d %localappdata%\Microsoft\VisualStudio\17*') do echo UsePreviews=True>%localappdata%\Microsoft\VisualStudio\%%a\sdk.txt
234
236
235
- - task : MSBuild@1
237
+ - task : NuGetToolInstaller@1
238
+
239
+ - task : NuGetCommand@2
236
240
inputs :
237
- platform : ' x64'
238
- solution : ' $(solution)'
239
- configuration : ' $(buildConfiguration)'
240
- msbuildArguments : ' /t:restore /p:Configuration="$(buildConfiguration)";Platform="$(buildPlatform)";PublishReadyToRun=true'
241
- maximumCpuCount : true
241
+ feedsToUse : config
242
+ nugetConfigPath : nuget.config
243
+ restoreSolution : ' $(solution)'
242
244
243
245
- task : MSBuild@1
244
246
inputs :
@@ -247,7 +249,7 @@ jobs:
247
249
configuration : ' $(buildConfiguration)'
248
250
msbuildArguments : ' /t:build;_GenerateAppxPackage /p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload'
249
251
maximumCpuCount : true
250
-
252
+
251
253
- task : CopyFiles@2
252
254
displayName : ' Copy Files to: $(build.artifactstagingdirectory)'
253
255
inputs :
@@ -272,4 +274,4 @@ jobs:
272
274
skipPolling : false
273
275
deletePackages : true
274
276
numberOfPackagesToKeep : ' 5'
275
- isMandatoryUpdate : true
277
+ isMandatoryUpdate : true
0 commit comments