枚举安装的Windows存储应用程序并获取这些应用程序徽标信息 [英] Enumerated installed windows store apps and get those apps logo info

查看:82
本文介绍了枚举安装的Windows存储应用程序并获取这些应用程序徽标信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  https:// code。 msdn.microsoft.com/windowsapps/Package-Manager-Inventory-ee821079

并且能够获得所有已安装的Windows应用商店。但是,如果有的话,我如何获得这些应用程序的徽标信息。当我尝试获取"package.Logo" 

此外,使用.Net4.5的示例。我们的软件仍在使用.Net4.0。当我将项目更改为支持.Net4.0时,该行存在编译错误:




错误< span style ="white-space:pre"> CS0012
"IEnumerable<>"类型在程序集中定义没有引用。您必须添加对程序集'System.Runtime,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'的引用。
FindPackagesSample E:\ Workinging \Test \Enumerate app packages sample\C#\ .FindPackagesSample.cs
24 有效

Error CS0012 The type 'IEnumerable<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. FindPackagesSample E:\Working\Test\Enumerate app packages sample\C#\FindPackagesSample.cs 24 Active

.Net 4.0是否支持  Windows .Management.Deployment.PackageManager?

Does .Net 4.0 support Windows.Management.Deployment.PackageManager?

推荐答案

是的。这是 .NET v4不支持
。 0

PS:我希望我可以在这里链接到英文版的文档,但似乎他们已经修改了MSDN库网站,以便如果语言是en-US ,它只是传送你到doc.microsoft.com上的相应页面,在Win10不存在之前他们假装Windows
版本。如果您需要查看某些功能的最低支持版本,则无用。

P.S.: I wish I could link to English version of documentation here, but seems they've modified the MSDN library site so that if the language is en-US, it'll just teleport you to corresponding page on doc.microsoft.com instead, where they pretend Windows version before Win10 does not exists. Really non-helpful if you need to check the minimum supported version of some features.


这篇关于枚举安装的Windows存储应用程序并获取这些应用程序徽标信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆