public CSharpVBAdditionalFileReferenceChecker(IServiceProvider serviceProvider)
 {
     if (serviceProvider == null)
     {
         throw new ArgumentNullException(nameof(serviceProvider));
     }
     projectSystemHelper = serviceProvider.GetService <IProjectSystemHelper>();
     projectSystemHelper.AssertLocalServiceIsNotNull();
 }
        public ProjectKindTestProjectIndicator(IServiceProvider serviceProvider)
        {
            if (serviceProvider == null)
            {
                throw new ArgumentNullException(nameof(serviceProvider));
            }

            projectSystem = serviceProvider.GetService <IProjectSystemHelper>();
            projectSystem.AssertLocalServiceIsNotNull();
        }
Пример #3
0
        public BuildPropertyTestProjectIndicator(IServiceProvider serviceProvider)
        {
            if (serviceProvider == null)
            {
                throw new ArgumentNullException(nameof(serviceProvider));
            }

            projectSystem = serviceProvider.GetService <IProjectSystemHelper>();
            projectSystem.AssertLocalServiceIsNotNull();

            propertyManager = serviceProvider.GetMefService <IProjectPropertyManager>();
            Debug.Assert(propertyManager != null, $"Failed to get {nameof(IProjectPropertyManager)}");
        }