src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignPackage.cs
/// <summary>
///     When the user builds through the command line, we only load the necessary, non-UI functionality:
///     1. Xml Editor package for XLinq tree
///     2. Model Manager
///     3. Connection Manager and listener
///     4. Error List, and notifications that perform our specialized validation on build
/// </summary>
When the user builds through the command line, we only load the necessary, non-UI functionality:
1. Xml Editor package for XLinq tree
2. Model Manager
3. Connection Manager and listener
4. Error List, and notifications that perform our specialized validation on build
When the user builds through the command line we only load the necessary non - UI functionality : 1 . Xml Editor package for XLinq tree 2 . Model Manager 3 . Connection Manager and listener 4 . Error List and notifications that perform our specialized validation on build
private void InitializeForCommandLineBuilds()
        {
            PackageManager.Package = this;
            _dispatcher = Dispatcher.CurrentDispatcher;
            var vsShell = (IVsShell)GetService(typeof(SVsShell));
            if (vsShell != null)
            {
                var editorPackageGuid = CommonPackageConstants.xmlEditorPackageGuid;
                IVsPackage editorPackage;
                NativeMethods.ThrowOnFailure(vsShell.LoadPackage(ref editorPackageGuid, out editorPackage));
            }
            ErrorListHelper.RegisterForNotifications();
        }
private void InitializeForCommandLineBuilds ( ) { PackageManager . Package = this ; _dispatcher = Dispatcher . CurrentDispatcher ; var vsShell = ( IVsShell ) GetService ( typeof ( SVsShell ) ) ; if ( vsShell != null ) { var editorPackageGuid = CommonPackageConstants . xmlEditorPackageGuid ; IVsPackage editorPackage ; NativeMethods . ThrowOnFailure ( vsShell . LoadPackage ( ref editorPackageGuid , out editorPackage ) ) ; } ErrorListHelper . RegisterForNotifications ( ) ; }
When the user builds through the command line, we only load the necessary, non-UI functionality:
1.
When the user builds through the command line we only load the necessary non - UI functionality : 1 .
// make sure that we can load the XML Editor package