예제 #1
0
 /// <summary>
 /// Creates a new project instance
 /// </summary>
 /// <returns>
 /// The NuBuildNode project node
 /// </returns>
 protected override ProjectNode CreateProject ()
 {
    var project = new NuBuildNode(this.package);
    var provider = (IServiceProvider)this.package;
    var olesite = (IOleServiceProvider)provider.GetService(
       typeof(IOleServiceProvider)
    );
    project.SetSite(olesite);
    return project;
 }
예제 #2
0
        /// <summary>
        /// Creates a new project instance
        /// </summary>
        /// <returns>
        /// The NuBuildNode project node
        /// </returns>
        protected override ProjectNode CreateProject()
        {
            var project  = new NuBuildNode(this.package);
            var provider = (IServiceProvider)this.package;
            var olesite  = (IOleServiceProvider)provider.GetService(
                typeof(IOleServiceProvider)
                );

            project.SetSite(olesite);
            return(project);
        }