Get the App
SLTechnology News&Howtos  ›  Development  › 

How to understand. NET Native and its Application

Shulou Source: shulou.com Published: 2022-06-02 11:10:50 09月10日 Update

This article shows you how to understand. NET Native and its application, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

.NET Native

The .NET Native compiles C # code into native machine code. According to the blog,. NET Native can optimize all Windows Store applications. Compiling Windows Store applications with .NET Native results in 60% faster application startup and less memory footprint, mainly due to the development team optimizing the .NET Native runtime (a refactoring and optimization of CLR) and using the advanced Microsoft VC++ optimizer backend.

The preview allows developers to test and compile applications, and the most exciting thing for developers is that using the .NET Native will not only give applications C++-like performance, but also achieve C # productivity.

Currently, the. NET Native preview supports Windows Store applications, which developers can use to build applications based on ARM and x86 architectures (which will soon support x86). In the near future, the. NET Native development team will also provide a consistent cross-platform experience and will continue to refine and enhance the scope of application of the .NET Native.

Combined with Visual Studio,. NET Native will provide users with a. Net development experience, and users will continue to enjoy editing / compiling / modulating and other development functions and experiences.

According to the FAQ provided by Microsoft, the current preview version of the .NET Native only supports the C # language, and programs compiled with the .NET Native will be deployed to the target machine as independent native compiled code, without the need to install the .NET Framework.

At present, Microsoft has developed some Windows Store Party An applications with .NET Native, including Wordament and Fresh Pain.

.net Native Preview download address: http://msdn.microsoft.com/en-US/vstudio/dotnetnative, currently available for installation on Visual Studio 2013 Update 2 RC. Currently, Microsoft has not officially told when the official version of the .NET Native will be released.

Compiling applications using .NET NativeToolchain

After the project is loaded, you can enable the .NET Native compiler, as long as the application is configured for x64 or ARM architecture, and because the .NET Native is compiled to native code, you have to specify a real machine type instead of CPU. Specific steps:

The above is how to understand. NET Native and its application, have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Applications development compilation code developers machines programs Centers Microsoft experience support content teams applications skills architecture versions users knowledge translation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Tech Info Shulou Technology Linux MySQL