我的解决方案中有两个uwp应用程序,一个是appService,另一个是调用appService的clientApp。
我在clientApp中添加了这段代码:
this.inventoryService = new AppServiceConnection();
this.inventoryService.AppServiceName = "com.microsoft.inventory";
this.inventoryService.PackageFamilyName ="bb1a8478-8005-46869923-e525ceaa26fc_4sz2ag3dcq60a";
var status = await this.inventoryService.OpenAsync();
if (status != AppServiceConnectionStatus.Success)
{
button.Content = "Failed to connect";
return;
}
此状态似乎是AppNotInstalled。 [Windows.ApplicationModel.AppService.AppServiceConnectionStatus.AppNotInstalled]
有人可以帮我解决这个问题吗?