File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -223,11 +223,12 @@ private async Task ApplyPackageUpdateAsync()
223
223
224
224
IsUpdating = true ;
225
225
226
- PackageManager pm = new PackageManager ( ) ;
227
226
DeploymentResult ? result = null ;
228
227
229
228
try
230
229
{
230
+ PackageManager packageManager = new PackageManager ( ) ;
231
+
231
232
var restartStatus = RegisterApplicationRestart ( null , 0 ) ;
232
233
App . AppModel . ForceProcessTermination = true ;
233
234
@@ -237,11 +238,11 @@ await Task.Run(async () =>
237
238
{
238
239
var bundlePath = new Uri ( ApplicationData . Current . LocalFolder . Path + "\\ " + TEMPORARY_UPDATE_PACKAGE_NAME ) ;
239
240
240
- var deployment = pm . RequestAddPackageAsync (
241
+ var deployment = packageManager . RequestAddPackageAsync (
241
242
bundlePath ,
242
243
null ,
243
244
DeploymentOptions . ForceApplicationShutdown ,
244
- pm . GetDefaultPackageVolume ( ) ,
245
+ packageManager . GetDefaultPackageVolume ( ) ,
245
246
null ,
246
247
null ) ;
247
248
You can’t perform that action at this time.
0 commit comments