// ReSharper disable once NotNullMemberIsNotInitialized
        public DteConfiguration([NotNull] DteSolution solution, [NotNull] ITracer tracer)
            : base(tracer)
        {
            Contract.Requires(solution != null);
            Contract.Requires(tracer != null);

            _solution = solution;
        }
        public DteConfiguration([NotNull] DteSolution solution, [NotNull] ITracer tracer)
            : base(tracer)
        {
            Contract.Requires(solution != null);
            Contract.Requires(tracer != null);

            _solution = solution;
            _moveToResourcesChangeThrottle = new DispatcherThrottle(DispatcherPriority.ContextIdle, PersistMoveToResources);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="DteProjectFile" /> class.
        /// </summary>
        /// <param name="solution">The solution.</param>
        /// <param name="filePath">Name of the file.</param>
        /// <param name="projectName">Name of the project.</param>
        /// <param name="uniqueProjectName">Unique name of the project file.</param>
        /// <param name="projectItem">The project item, or null if the projectItem is not known.</param>
        public DteProjectFile([NotNull] DteSolution solution, [NotNull] string filePath, string projectName, string uniqueProjectName, [NotNull] EnvDTE.ProjectItem projectItem)
            : base(filePath, solution.SolutionFolder, projectName, uniqueProjectName)
        {
            Contract.Requires(solution != null);
            Contract.Requires(!string.IsNullOrEmpty(filePath));
            Contract.Requires(projectItem != null);

            _solution = solution;
            _projectItems.Add(projectItem);
        }
 // ReSharper disable once NotNullMemberIsNotInitialized
 public DteConfiguration([NotNull] DteSolution solution, [NotNull] ITracer tracer)
     : base(tracer)
 {
     _solution = solution;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DteProjectFile" /> class.
 /// </summary>
 /// <param name="solution">The solution.</param>
 /// <param name="filePath">Name of the file.</param>
 /// <param name="projectName">Name of the project.</param>
 /// <param name="uniqueProjectName">Unique name of the project file.</param>
 /// <param name="projectItem">The project item, or null if the projectItem is not known.</param>
 public DteProjectFile([NotNull] DteSolution solution, [NotNull] string filePath, [CanBeNull] string projectName, [CanBeNull] string uniqueProjectName, [NotNull] EnvDTE.ProjectItem projectItem)
     : base(filePath, solution.SolutionFolder, projectName, uniqueProjectName)
 {
     _solution = solution;
     _projectItems.Add(projectItem);
 }