How DXCore plug-ins are loaded
DXCore has a built-in Loader Engine, which is intended to improve the speed of its start-up process. However, the first DXCore start-up process is pretty long (it may take a minute or two). There’s a reason that the first start-up takes much more time then the subsequent launches. When DXCore loads for the first time, it has to load all of the plug-ins found in both, “System” and “PlugIns” subfolders. At this time, DXCore profiles every loaded assembly: checks its load type, loading time, so in brief, all important and necessary information that DXCore should know about a particular assembly. All this information is saved to Loader profiles in an XML format. This information will be used on every subsequent DXCore launch, so that Visual Studio should start instantly, because, in the first place, plug-ins are loaded from profiles only after the splash screen goes away and, secondly, because Loader Engine has optimized DXCore loading process specially for your system.
Plug-in profiles are stored in the “Loader” subfolder of the Settings folder:
%AppData%\CodeRush for VS .NET\1.1\Settings.xml\Loader
If any of the plug-ins have changed on disk for some reason (recompiled and/or replaced) or a new plug-in is installed, the Loader Engine will notice that and correct its profiles for these specific plug-ins only.
You can see the profiles information on the “Plug-in Manager” options page in the Options Dialog:
Follow these steps to get to the “Plug-in Manager” options page:
1. From the DevExpress menu, select “Options…”.
2. In the tree view on the left, navigate to this folder:
3. Select the “Plug-in Manager” options page.
NOTE: This page level is Expert, and will only be visible if the Level combo on the lower-left of the Options dialog is set to Expert.
If you have any trouble with loading of some plug-ins or DXCore itself, you may try to rebuild the Loader profiles. To do this, you need to remove the “Loader” folder with profiles from your system.
NOTE: if you are actively developing your own plug-in, it is recommended to change its “loading” setting to load it manually in the Plug-In Manager, to prevent it from being loaded automatically. This will allow you to compile and build your plug-in without errors due to file locks on the plug-in assembly. This option can be changed when you create a new DXCore plug-in. If you already have created a plug-in or modify the existing one, you may tweak the “DXCoreAssembly” attribute in the “AssemblyInfo” file of your plug-in solution to load it manually like this:
[assembly: DXCoreAssembly(DXCoreAssemblyType.PlugIn, “Assembly Title”, PlugInLoadType.Idle, LoadAbilityType.LoadDisabled)]
Change the LoadAbilityType parameter to LoadDisabled to make a plug-in loaded manually.—– Products: DXCore Versions: all VS IDEs: any Updated: Sep/25/2010 ID: D007