src/Misc/EFTools/DesignXmlCore/VisualStudio/VSHelpers.cs
/// <summary>
///     Gets the miscellaneous project using a cached VsPackage (Package.GetGlobalService). NOTE: this
///     implementation much different than that in VsShellUtilities due
///     to a bug in their implementation.
/// </summary>
/// <param name="provider">
///     The service provider
/// </param>
/// <returns>
///     A refernce to the IVsProject3 interface for the misceleneous project.
/// </returns>
Gets the miscellaneous project using a cached VsPackage (Package.GetGlobalService). NOTE: this
implementation much different than that in VsShellUtilities due
to a bug in their implementation.
Gets the miscellaneous project using a cached VsPackage ( Package . GetGlobalService ) . NOTE : this implementation much different than that in VsShellUtilities due to a bug in their implementation .
private static IVsProject3 GetMiscellaneousProject()
        {
            var miscFiles =
                Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(SVsExternalFilesManager)) as IVsExternalFilesManager;
            IVsProject project = null;
            if (miscFiles != null)
            {
                NativeMethods.ThrowOnFailure(miscFiles.GetExternalFilesProject(out project));
            }
            return (project as IVsProject3);
        }
private static IVsProject3 GetMiscellaneousProject ( ) { var miscFiles = Microsoft . VisualStudio . Shell . Package . GetGlobalService ( typeof ( SVsExternalFilesManager ) ) as IVsExternalFilesManager ; IVsProject project = null ; if ( miscFiles != null ) { NativeMethods . ThrowOnFailure ( miscFiles . GetExternalFilesProject ( out project ) ) ; } return ( project as IVsProject3 ) ; }
Gets the miscellaneous project using a cached VsPackage (Package.GetGlobalService).
Gets the miscellaneous project using a cached VsPackage ( Package . GetGlobalService ) .
A refernce to the IVsProject3 interface for the misceleneous project.
A refernce to the IVsProject3 interface for the misceleneous project .
provider
The service provider
The service provider