2012-10-30 195 views

回答

0

我不確定你在問什麼。但是,如果您在市場中搜索桌面應用程序是可能的,那麼只需開發,或者您可以像使用Windows 7或Windows XP一樣使用和安裝桌面應用程序。

2

我找到了答案在這裏:http://weblogs.thinktecture.com/cnagel/2012/10/calling-winrt-from-windows-desktop-apps.html

var pm = new PackageManager(); 
IEnumerable<Package> packages = pm.FindPackages(); 
foreach (var package in packages) 
{ 
    if (package.Id.FullName.Equals("X")) 
    { 
     Console.WriteLine("Architecture: {0}", package.Id.Architecture.ToString()); 
     Console.WriteLine("Family: {0}", package.Id.FamilyName); 
     Console.WriteLine("Full name: {0}", package.Id.FullName); 
     Console.WriteLine("Name: {0}", package.Id.Name); 
     Console.WriteLine("Publisher: {0}", package.Id.Publisher); 
     Console.WriteLine("Publisher Id: {0}", package.Id.PublisherId); 
     Console.WriteLine("Version: {0}.{1}.{2}.{3}", package.Id.Version.Major, package.Id.Version.Minor, package.Id.Version.Revision, package.Id.Version.Build); 
     Console.WriteLine(); 
    } 
} 
1

一點點修正維尼的答案。 版本號的正確順序是重大,次要,構建(不是修訂版),修訂版。

相關問題