Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Relationship between Universal Windows App and .NET Framework version

In Visual Studio 2015, in the New Project dialog box, above the "Blank App (Universal Windows)" template name there is a combo box where you can select the .NET Framework version.

enter image description here

By default .NET Framework version 4.5.2 is selected, and most screenshots in tutorials and guides show this version as selected. However, there is also .NET Framework 4.6 in the list that can be selected.

What would be the difference if I select .NET Framework 4.6? Can I use any new APIs and/or any C# language improvements in an Universal Windows App?

And will the app only run on Windows systems that have the .NET Framework 4.6 installed?

like image 268
Alex Vang Avatar asked Nov 16 '15 07:11

Alex Vang


People also ask

Does UWP use .NET Framework?

NET Standard is supported in which UWP versions. If you are developing a Desktop app, see instead . NET Framework versions and dependencies for detailed information on .

What is the relation between Dot NET Framework and Microsoft Visual Studio?

Software developers use . NET Framework to build many different types of applications—websites, services, desktop apps, and more with Visual Studio. Visual Studio is an integrated development environment (IDE) that provides development productivity tools and debugging capabilities.

What is difference between .NET Framework versions?

. Net Core does not support desktop application development and it rather focuses on the web, windows mobile, and windows store. . Net Framework is used for the development of both desktop and web applications as well as it supports windows forms and WPF applications.

Is .NET and .NET Framework same?

In simple terms, . NET Core is the latest version of Microsoft's . NET Framework( The framework is a re-usable design platform for software systems, which provides support for code libraries and various scripting languages ), which is a free, open-source, general-purpose programming platform.


1 Answers

And will the app only run on Windows systems that have the .NET Framework 4.6 installed?

No, it runs on any machine or device that's capable of running Universal apps. The framework version number detail disappears once the Store packages your app, the framework methods you actually use are compiled into the package. Done by .NET Native, the ahead-of-time compiler for Universal apps. The package even runs on a device that doesn't have the .NET Framework installed at all, like a phone.

So the framework you select doesn't matter. Picking 4.5.1 or 4.5.2 or 4.6 doesn't give you extra capabilities, those runtime revisions had very few new api additions in the first place. But above all you build your project with reference assemblies that doesn't expose them. Note how you can pick 3.5 in the combobox and it makes no difference.

Review Project > Properties > Application tab. That's what really matters, you target a Universal version. Currently only build 10240 so nothing to fret about, yet. The framework version that targets is a subset of the .NET Framework you have on your machine, named .NETCore. It is a lot smaller than the full version.

Don't forget to test your Release build, very important to .NET Native.

like image 178
Hans Passant Avatar answered Oct 26 '22 16:10

Hans Passant