Exploring the Features of .NET Native Image Selection

Exploring the Features of .NET Native Image Selection

Joseph Lv8

Exploring the Features of .NET Native Image Selection

Table of Contents

Disclaimer: This post includes affiliate links

If you click on a link and make a purchase, I may receive a commission at no extra cost to you.

.NET Native Image Dialog

In this dialog you can specify the way Native Image is generated.

.NET Native Image Dialog

Scenarios

Debug

Use this option to generate native images that can be used under a debugger.

https://techidaily.com

Profile

Use this option to generate native images that can be used under a profiler.

No Dependencies

Use this option to generate the minimum number of native images required.

Installation

Platform

  • A native image same as the target platform - Generate native image only for .NET Framework with the same platform as the target machine.
  • 32-bit native image - Generate native image only for the .NET Framework’s 32-bit version.
  • 64-bit native image - Generate native image only for the .NET Framework’s 64-bit version.
  • 32-bit and 64-bit native images - Generate native image for both the 32-bit and the 64-bit .NET Framework versions.

Priority

  • Wait for this native image generation to continue - image generation occurs synchronously during the installation process. This is the highest priority level.
  • Immediate asynchronous generation - image generation begins during the installation process and is performed by the Native Image Service parallel to the installation.
  • Asynchronous generation - image generation begins after all images with immediate asynchronous priority have been generated.
  • Generate when the computer is idle - image generation occurs when the machine is idle.

Dependencies Location

https://techidaily.com

Unspecified

Select this option if you don’t have any dependencies or you want to let the generator use its default dependencies search mechanism.

https://techidaily.com

Use the specified executable assembly’s configuration

Since the generator needs to make the same decisions as the loader when binding to dependencies for DLL assemblies which are loaded via reflection, this field should indicate the application which will load this assembly.

https://techidaily.com

Use specified folder as the application base

Folder used as the application base when locating dependencies.

Generator Version

Here you can specify the supported generator versions of this assembly by selecting one of the following available options:

  • Use the biggest version available on the target computer
  • Use only the specified comma separated versions

The assembly required version will be used in case no version is specified. When specifying a version use the full version string like: 2.0.50727

ImportantConfiguration file, Dependencies Base and No Dependencies options as well as Asynchronous or Idle generation priorities are supported by Native Image Generator (NGEN) starting with v2.0.

https://techidaily.com

Did you find this page useful?

Please give it a rating:

Thanks!

Report a problem on this page

Information is incorrect or missing

Information is unclear or confusing

Something else

Can you tell us what’s wrong?

Send message

Also read:

  • Title: Exploring the Features of .NET Native Image Selection
  • Author: Joseph
  • Created at : 2024-11-01 16:47:31
  • Updated at : 2024-11-03 16:25:48
  • Link: https://fox-tls.techidaily.com/exploring-the-features-of-net-native-image-selection/
  • License: This work is licensed under CC BY-NC-SA 4.0.