Search code examples
c#windows-store-appsregistry.net-framework-version

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?


Solution

  • 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".