none
How uwp to detect processor via c# RRS feed

  • 问题

  • I want my uwp app only to be complied to a x86 version,but whent it runs on a Windows on ARM machine I want the app know it is running on a ARM machine .

    I find a way using pakage.Id.Architecture to give the OSBitnese,but I don't want my app to be complied an ARM version.

    Is there any other way to meet my need.

     
    2018年1月24日 9:50

答案

  • Use this 

    Windows.ApplicationModel.Package package = Windows.ApplicationModel.Package.Current;
    string architecture = package.Id.Architecture.ToString();

    • 已标记为答案 Lane.x.l 2018年1月30日 4:53
    2018年1月30日 4:52

全部回复