private void RegisterProjectFileGenerator(IVsProjectGenerator projectFileGenerator) { var registerProjectGenerators = GetService(typeof(SVsRegisterProjectTypes)) as IVsRegisterProjectGenerators; if (registerProjectGenerators == null) { throw new InvalidOperationException(typeof(SVsRegisterProjectTypes).FullName); } uint cookie; Guid riid = projectFileGenerator.GetType().GUID; registerProjectGenerators.RegisterProjectGenerator(ref riid, projectFileGenerator, out cookie); if (_projectFileGenerators == null) { _projectFileGenerators = new Dictionary <IVsProjectGenerator, uint>(); } _projectFileGenerators[projectFileGenerator] = cookie; }
public void RegisterProjectGenerator([In] ref Guid rguidProjGenerator, [In, MarshalAs(UnmanagedType.Interface)] IVsProjectGenerator pProjectGenerator, out uint pdwCookie) { pdwCookie = 1; }