The Native Image Generator (NGen 2.0) Uninstall Action enables the removal of a native image for an assembly and its dependencies. Assemblies with native images run faster on the current machine because they can bypass the .NET Just-In-Time compiler.

NGen maintains a reference count, so native assemblies will only be removed if they are not depended upon by other native assemblies.

 

 

Action Scripting

Action Specific Scripting

Other

Script PropertyExample (Javascript)Valid ValuesDefaultPersistedDescription
AppBasePath
Action.AppBasePath = 'C:\Projects\SimpleProject\';
any text[blank]On save

Sets the Configure using appbase directory value.

AssemblyName
Action.AssemblyName = 'bobsAssembly, Version=1.0.0.0, Culture=neutral, ' +
    'PublicKeyToken=1138abc1dabcdfle2';
any text[blank]On save

Sets the NGen 2.0 Native Image Uninstall Action value.

AssemblyPath
Action.AssemblyPath = 'C:\Projects\SimpleProject\Output\SimpleProject.dll'
any text[blank]On saveSets the NGen 2.0 Native Image Uninstall Action value.
Debug
Action.Debug = true;
true, falsefalseOn saveSets the NGen 2.0 Native Image Uninstall Action value. 
ExeConfigPath
Action.ExeConfigPath = 'C:\Projects\SimpleProject\Output\Config.exe';
any text[blank]On saveSets the NGen 2.0 Native Image Uninstall Action value. 
NoDep
Action.NoDep = true;
true, falsefalseOn saveSets the NGen 2.0 Native Image Uninstall Action value. 
Profile
Action.Profile = true;
true, falsefalseOn saveSets the Generate images for use with profiler value. 
Queued
Action.Queued = true;
true, falsefalseOn saveSets the Queue for execution by the native image service value. 
UseAppBase
Action.UseAppBase = true;
true, falsefalseOn saveWhen set to true it enables the usage of the AppBasePath property.
UseAssemblyName
Action.UseAssemblyName = true;
true, falsefalseOn saveWhen set to true it enables the usage of the AssemblyPath property.
UseExecConfig
Action.UseExecConfig = true;
true, falsefalseOn saveWhen set to true it enables the usage of the ExeConfigPath property. 
Verbose
Action.Verbose = true;
true, falsefalseOn saveSets the NGen 2.0 Native Image Uninstall Action value.