Пример #1
0
        private EditProjectFileCommand CreateInstance(
            UnconfiguredProject unconfiguredProject = null,
            bool implementCapabilities       = true,
            IMsBuildAccessor msbuildAccessor = null,
            IFileSystem fileSystem           = null,
            ITextDocumentFactoryService textDocumentService      = null,
            IVsEditorAdaptersFactoryService editorAdapterService = null,
            IProjectThreadingService threadingService            = null,
            IVsShellUtilitiesHelper shellUtilities = null
            )
        {
            UnitTestHelper.IsRunningUnitTests = true;
            var uProj        = unconfiguredProject ?? IUnconfiguredProjectFactory.Create();
            var capabilities = IProjectCapabilitiesServiceFactory.ImplementsContains(CapabilityChecker(implementCapabilities));
            var msbuild      = msbuildAccessor ?? IMsBuildAccessorFactory.Create();
            var fs           = fileSystem ?? new IFileSystemMock();
            var tds          = textDocumentService ?? ITextDocumentFactoryServiceFactory.Create();
            var eas          = editorAdapterService ?? IVsEditorAdaptersFactoryServiceFactory.Create();
            var threadServ   = threadingService ?? IProjectThreadingServiceFactory.Create();
            var shellUt      = shellUtilities ?? new TestShellUtilitiesHelper(
                (sp, path) => Tuple.Create(IVsHierarchyFactory.Create(), (uint)1, IVsPersistDocDataFactory.Create(), (uint)1),
                (sp, path, edType, logView) => IVsWindowFrameFactory.Create());

            return(new EditProjectFileCommand(uProj, capabilities, IServiceProviderFactory.Create(), msbuild, fs, tds, eas, threadServ, shellUt));
        }
Пример #2
0
 public MsBuildModelWatcher(IProjectThreadingService threadingService,
                            IFileSystem fileSystem,
                            IMsBuildAccessor accessor,
                            UnconfiguredProject unconfiguredProject) :
     base(threadingService.JoinableTaskContext)
 {
     _fileSystem          = fileSystem;
     _accessor            = accessor;
     _unconfiguredProject = unconfiguredProject;
 }
Пример #3
0
 public EditVbprojCommand(UnconfiguredProject unconfiguredProject,
                          IProjectCapabilitiesService projectCapabilitiesService,
                          [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
                          IMsBuildAccessor msbuildAccessor,
                          IFileSystem fileSystem,
                          ITextDocumentFactoryService textDocumentService,
                          IVsEditorAdaptersFactoryService editorFactoryService,
                          IProjectThreadingService threadingService,
                          IVsShellUtilitiesHelper shellUtilities) :
     base(unconfiguredProject, projectCapabilitiesService, serviceProvider, msbuildAccessor, fileSystem,
          textDocumentService, editorFactoryService, threadingService, shellUtilities)
 {
 }
 public EditProjectFileCommand(UnconfiguredProject unconfiguredProject,
                               IProjectCapabilitiesService projectCapabilitiesService,
                               IServiceProvider serviceProvider,
                               IMsBuildAccessor msbuildAccessor,
                               IFileSystem fileSystem,
                               ITextDocumentFactoryService textDocumentService,
                               IVsEditorAdaptersFactoryService editorFactoryService,
                               IProjectThreadingService threadingService,
                               IVsShellUtilitiesHelper shellUtilities,
                               IExportFactory <IMsBuildModelWatcher> watcherFactory) :
     base(unconfiguredProject, projectCapabilitiesService, serviceProvider, msbuildAccessor,
          fileSystem, textDocumentService, editorFactoryService, threadingService, shellUtilities, watcherFactory)
 {
 }
Пример #5
0
 public AbstractEditProjectFileCommand(UnconfiguredProject unconfiguredProject,
                                       IProjectCapabilitiesService projectCapabilitiesService,
                                       IServiceProvider serviceProvider,
                                       IMsBuildAccessor msbuildAccessor,
                                       IFileSystem fileSystem,
                                       ITextDocumentFactoryService textDocumentService,
                                       IVsEditorAdaptersFactoryService editorFactoryService,
                                       IProjectThreadingService threadingService,
                                       IVsShellUtilitiesHelper shellUtilities)
 {
     _unconfiguredProject       = unconfiguredProject;
     _projectCapabiltiesService = projectCapabilitiesService;
     _serviceProvider           = serviceProvider;
     _msbuildAccessor           = msbuildAccessor;
     _fileSystem = fileSystem;
     _textDocumentFactoryService = textDocumentService;
     _editorFactoryService       = editorFactoryService;
     _threadingService           = threadingService;
     _shellUtilities             = shellUtilities;
 }