简体   繁体   中英

In UWP or Store app how to determine which .NET Framework Versions are installed

So I'd like to print in my log for either build of my application (UWP app and also Windows Store app) the installed .NET Framework Versions on the system running the application when it starts up.

All resources pretty much point to using the registry: https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx

That isn't possible in the Windows Store application, since the RegistryKey class isn't available.

Is there another way to do get at the installed .Net Framework versions so I can print the results in the log?

Remember that UWP means also smartphone or XBOX, not only desktop/tablet X64. You don't need the .NET Framework installed. Maybe you can check something about adaptive code or "Windows Desktop Extension for the UWP".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM