/// <summary>
        /// Initializes a new instance of the <see cref="DteProjectFile" /> class.
        /// </summary>
        /// <param name="solution">The solution.</param>
        /// <param name="solutionFolder">The solution folder.</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(DteSolution solution, string solutionFolder, string filePath, string?projectName, string?uniqueProjectName, EnvDTE.ProjectItem projectItem)
            : base(filePath, solutionFolder, projectName, uniqueProjectName)
        {
            Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread();

            _solution = solution;
            _projectItems.Add(projectItem);
        }
Exemplo n.º 2
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);
 }
Exemplo n.º 3
0
        // ReSharper disable once NotNullMemberIsNotInitialized
#pragma warning disable 8618
        public DteConfiguration(DteSolution solution, ITracer tracer)
#pragma warning restore 8618
            : base(tracer)
        {
            _solution = solution;
        }
Exemplo n.º 4
0
 public DteSourceFilesProvider(IExportProvider exportProvider)
 {
     _performanceTracer = exportProvider.GetExportedValue <PerformanceTracer>();
     _configuration     = exportProvider.GetExportedValue <IConfiguration>();
     _solution          = exportProvider.GetExportedValue <DteSolution>();
 }
 // ReSharper disable once NotNullMemberIsNotInitialized
 public DteConfiguration([NotNull] DteSolution solution, [NotNull] ITracer tracer)
     : base(tracer)
 {
     _solution = solution;
 }