Пример #1
0
 internal override AbstractGenerateNuGetPackageCommand CreateInstanceCore(
     UnconfiguredProject unconfiguredProject,
     IProjectThreadingService threadingService,
     Shell.SVsServiceProvider serviceProvider,
     GeneratePackageOnBuildPropertyProvider generatePackageOnBuildPropertyProvider)
 {
     return(new GenerateNuGetPackageTopLevelBuildMenuCommand(unconfiguredProject, threadingService, serviceProvider, generatePackageOnBuildPropertyProvider));
 }
 internal override AbstractGenerateNuGetPackageCommand CreateInstanceCore(
     UnconfiguredProject project,
     IProjectThreadingService threadingService,
     IVsService <SVsSolutionBuildManager, IVsSolutionBuildManager2> vsSolutionBuildManagerService,
     GeneratePackageOnBuildPropertyProvider generatePackageOnBuildPropertyProvider)
 {
     return(new GenerateNuGetPackageProjectContextMenuCommand(project, threadingService, vsSolutionBuildManagerService, generatePackageOnBuildPropertyProvider));
 }
Пример #3
0
 public GenerateNuGetPackageTopLevelBuildMenuCommand(
     UnconfiguredProject unconfiguredProject,
     IProjectThreadingService threadingService,
     SVsServiceProvider serviceProvider,
     GeneratePackageOnBuildPropertyProvider generatePackageOnBuildPropertyProvider)
     : base(unconfiguredProject, threadingService, serviceProvider, generatePackageOnBuildPropertyProvider)
 {
 }
 public GenerateNuGetPackageTopLevelBuildMenuCommand(
     UnconfiguredProject project,
     IProjectThreadingService threadingService,
     IVsService <SVsSolutionBuildManager, IVsSolutionBuildManager2> vsSolutionBuildManagerService,
     GeneratePackageOnBuildPropertyProvider generatePackageOnBuildPropertyProvider)
     : base(project, threadingService, vsSolutionBuildManagerService, generatePackageOnBuildPropertyProvider)
 {
 }
 public GenerateNuGetPackageProjectContextMenuCommand(
     UnconfiguredProject project,
     IProjectThreadingService threadingService,
     ISolutionBuildManager vsSolutionBuildManagerService,
     GeneratePackageOnBuildPropertyProvider generatePackageOnBuildPropertyProvider)
     : base(project, threadingService, vsSolutionBuildManagerService, generatePackageOnBuildPropertyProvider)
 {
 }
 internal override AbstractGenerateNuGetPackageCommand CreateInstanceCore(
     UnconfiguredProject project,
     IProjectThreadingService threadingService,
     ISolutionBuildManager solutionBuildManager,
     GeneratePackageOnBuildPropertyProvider generatePackageOnBuildPropertyProvider)
 {
     return(new GenerateNuGetPackageTopLevelBuildMenuCommand(project, threadingService, solutionBuildManager, generatePackageOnBuildPropertyProvider));
 }
Пример #7
0
        protected AbstractGenerateNuGetPackageCommand(
            UnconfiguredProject project,
            IProjectThreadingService threadingService,
            IVsService <SVsSolutionBuildManager, IVsSolutionBuildManager2> vsSolutionBuildManagerService,
            GeneratePackageOnBuildPropertyProvider generatePackageOnBuildPropertyProvider)
        {
            Requires.NotNull(project, nameof(project));
            Requires.NotNull(threadingService, nameof(threadingService));
            Requires.NotNull(vsSolutionBuildManagerService, nameof(vsSolutionBuildManagerService));
            Requires.NotNull(generatePackageOnBuildPropertyProvider, nameof(generatePackageOnBuildPropertyProvider));

            Project           = project;
            _threadingService = threadingService;
            _vsSolutionBuildManagerService          = vsSolutionBuildManagerService;
            _generatePackageOnBuildPropertyProvider = generatePackageOnBuildPropertyProvider;
        }
Пример #8
0
        protected AbstractGenerateNuGetPackageCommand(
            UnconfiguredProject project,
            IProjectThreadingService threadingService,
            SVsServiceProvider serviceProvider,
            GeneratePackageOnBuildPropertyProvider generatePackageOnBuildPropertyProvider)
        {
            Requires.NotNull(project, nameof(project));
            Requires.NotNull(threadingService, nameof(threadingService));
            Requires.NotNull(serviceProvider, nameof(serviceProvider));
            Requires.NotNull(generatePackageOnBuildPropertyProvider, nameof(generatePackageOnBuildPropertyProvider));

            Project           = project;
            _threadingService = threadingService;
            _serviceProvider  = serviceProvider;
            _generatePackageOnBuildPropertyProvider = generatePackageOnBuildPropertyProvider;
        }
        internal AbstractGenerateNuGetPackageCommand CreateInstance(
            GeneratePackageOnBuildPropertyProvider generatePackageOnBuildPropertyProvider = null,
            IVsSolutionBuildManager2 buildManager = null,
            IVsUpdateSolutionEvents solutionEventsListener = null,
            bool isBuilding = false,
            bool cancelBuild = false)
        {
            var hierarchy = IVsHierarchyFactory.Create();
            var project = UnconfiguredProjectFactory.Create(hierarchy);
            var threadingService = IProjectThreadingServiceFactory.Create();
            buildManager ??= IVsSolutionBuildManager2Factory.Create(solutionEventsListener, hierarchy, isBuilding, cancelBuild);
            var serviceProvider = IVsServiceFactory.Create<SVsSolutionBuildManager, IVsSolutionBuildManager2>(buildManager);
            generatePackageOnBuildPropertyProvider ??= CreateGeneratePackageOnBuildPropertyProvider();

            return CreateInstanceCore(project, threadingService, serviceProvider, generatePackageOnBuildPropertyProvider);
        }
Пример #10
0
 internal abstract AbstractGenerateNuGetPackageCommand CreateInstanceCore(
     UnconfiguredProject project,
     IProjectThreadingService threadingService,
     Shell.SVsServiceProvider serviceProvider,
     GeneratePackageOnBuildPropertyProvider generatePackageOnBuildPropertyProvider);
Пример #11
0
 internal abstract AbstractGenerateNuGetPackageCommand CreateInstanceCore(
     UnconfiguredProject project,
     IProjectThreadingService threadingService,
     IVsService <SVsSolutionBuildManager, IVsSolutionBuildManager2> vsSolutionBuildManagerService,
     GeneratePackageOnBuildPropertyProvider generatePackageOnBuildPropertyProvider);