protected override ProjectNode CreateProject()
        {
            var project = new ApplicationProjectNode( Package );

            var serviceProvider = ( IServiceProvider )this.Package;
            var oleService = ( IOleServiceProvider )serviceProvider.GetService( typeof( IOleServiceProvider ) );
            project.SetSite( oleService );

            return project;
        }
        /// <summary>
        /// Create the application project
        /// </summary>
        /// <returns>Application project node</returns>
        protected override ProjectNode CreateProject()
        {
            var project = new ApplicationProjectNode( Package );

            // TODO: Maybe explain what the IOleServiceProvider does here.
            // Now we're just using it because the samples said so. :p
            var serviceProvider = ( IServiceProvider )this.Package;
            var oleService = ( IOleServiceProvider )serviceProvider.GetService( typeof( IOleServiceProvider ) );
            project.SetSite( oleService );

            return project;
        }
        /// <summary>
        /// Create the application project
        /// </summary>
        /// <returns>Application project node</returns>
        protected override ProjectNode CreateProject()
        {
            var project = new ApplicationProjectNode(Package);

            // TODO: Maybe explain what the IOleServiceProvider does here.
            // Now we're just using it because the samples said so. :p
            var serviceProvider = ( IServiceProvider )this.Package;
            var oleService      = ( IOleServiceProvider )serviceProvider.GetService(typeof(IOleServiceProvider));

            project.SetSite(oleService);

            return(project);
        }
示例#4
0
 public ApplicationConfig( ApplicationProjectNode project, string config )
     : base(project, config)
 {
     this.project = project;
 }
 public ApplicationReferenceContainerNode( ApplicationProjectNode project )
     : base(project)
 {
 }
示例#6
0
 public ApplicationReferenceContainerNode(ApplicationProjectNode project)
     : base(project)
 {
 }
示例#7
0
 public ApplicationFileNode( ApplicationProjectNode project, ProjectElement item )
     : base(project, item)
 {
 }
示例#8
0
 public ApplicationConfigProvider(ApplicationProjectNode project)
     : base(project)
 {
     this.project = project;
 }
 public ApplicationFileNode(ApplicationProjectNode project, ProjectElement item)
     : base(project, item)
 {
 }
 public ApplicationConfigProvider( ApplicationProjectNode project )
     : base(project)
 {
     this.project = project;
 }
 public ApplicationConfig(ApplicationProjectNode project, string config)
     : base(project, config)
 {
     this.project = project;
 }