- Hands-On Mobile Development with .NET Core
- Can Bilgin
- 292字
- 2021-06-24 13:55:32
.NET Standard and .NET Native
As we saw previously, UWP using the .NET Framework utilizes .NET Standard. .NET Standard is used as the common BCL (base class library), while the Core Common Language Runtime (Core CLR) is responsible for executing the modules that are implemented by .NET Standard. Besides .NET Core and .NET Standard, another .NET concept is invaluable for Universal Windows Applications: .NET Native.
.NET Native provides a set of tools that are responsible for generating native code from .NET applications for UWP, bypassing the intermediate language. Using the .NET Native toolchain, .NET Standard class libraries, as well as the common language runtime infrastructure modules such as garbage collection, are linked to smaller, dynamic link libraries (similar to the Xamarin build process for iOS and Android).
In order to enable the native compilation, you need to enable the .NET Native tool chain for the current configuration (for example, Release x64), which will be used for preparing the appx package in the application, as well as the appx bundle that will need to be created for the supported architectures (ARM, x86, and x64):

During the linking process, several actions are executed:
- Certain code paths that utilize reflection and metadata are replaced with static native code
- Eliminates all metadata (where applicable)
- Links out the unused third-party libraries, as well the .NET Framework class libraries
- Replaces the full common language runtime with a refactored version that primarily includes the garbage collector
As a result, similar to .NET Core runtime applications (with a specified platform target), UWP applications can be cleaned up from direct dependencies to the .NET Framework by means of converting these dependencies into local references for the application itself. This, in turn, reflects on the application as performance and portability enhancements.
- 腦深部電刺激術(shù)
- 哮喘患者自我管理手冊(cè)
- 同仁眼超聲診斷手冊(cè)
- 2021中國(guó)腫瘤登記年報(bào)(漢英)
- 癲癇患者經(jīng)濟(jì)負(fù)擔(dān)藍(lán)皮書(shū)
- Hands-On RESTful Web Services with TypeScript 3
- 臨床檢驗(yàn)一萬(wàn)個(gè)為什么:病原檢驗(yàn)分冊(cè)
- 流行病學(xué)(第2版)
- 臨床神經(jīng)認(rèn)知及社會(huì)功能評(píng)估手冊(cè)
- 針灸學(xué)基本概念術(shù)語(yǔ)通典(上下冊(cè))
- 圖說(shuō)災(zāi)難逃生自救叢書(shū):核與輻射事故
- 200例疑難病癥診治實(shí)錄
- 中國(guó)腦血管病臨床管理指南(第2版)
- 十死換一生:我戰(zhàn)勝了抑郁癥
- 肛管直腸周圍疾病MRI圖譜:案例分析