4 writes to ProjectCollection
Microsoft.Build (4)
Definition\Project.cs (4)
113ProjectCollection = projectCollection; 270ProjectCollection = projectCollection; 364ProjectCollection = projectCollection; 461ProjectCollection = projectCollection;
37 references to ProjectCollection
Microsoft.Build (24)
Definition\Project.cs (12)
165/// <param name="projectCollection">The <see cref="ProjectCollection"/> the project is added to.</param> 178/// <param name="projectCollection">The <see cref="ProjectCollection"/> the project is added to.</param> 223/// <param name="projectCollection">The <see cref="ProjectCollection"/> the project is added to.</param> 239/// <param name="projectCollection">The <see cref="ProjectCollection"/> the project is added to.</param> 257/// <param name="projectCollection">The <see cref="ProjectCollection"/> the project is added to.</param> 845internal ILoggingService LoggingService => ProjectCollection.LoggingService; 1973private ProjectCollection ProjectCollection => Owner.ProjectCollection; 4066public PropertyDictionary<ProjectPropertyInstance> EnvironmentVariablePropertiesDictionary => this.Project.ProjectCollection.EnvironmentProperties; 4300Project.ProjectCollection.GetToolset, 4301Project.ProjectCollection.DefaultToolsVersion, 4310string toolsVersionList = Utilities.CreateToolsVersionListString(Project.ProjectCollection.Toolsets); 4324TaskRegistry = new TaskRegistry(Toolset, Project.ProjectCollection.ProjectRootElementCache);
Definition\ProjectCollection.cs (1)
1611ErrorUtilities.VerifyThrowInvalidOperation(ReferenceEquals(project.ProjectCollection, this), "OM_IncorrectObjectAssociation", "Project", "ProjectCollection");
Instance\ProjectInstance.cs (11)
376_hostServices = project.ProjectCollection.HostServices; 395this.CreateEnvironmentVariablePropertiesSnapshot(project.ProjectCollection.EnvironmentProperties); 399this.Toolset = project.ProjectCollection.GetToolset(project.ToolsVersion); 401this.TaskRegistry = new TaskRegistry(Toolset, project.ProjectCollection.ProjectRootElementCache); 403this.ProjectRootElementCache = project.ProjectCollection.ProjectRootElementCache; 433_hostServices = linkedProject.ProjectCollection.HostServices; 460_environmentVariableProperties = linkedProject.ProjectCollection.SharedReadOnlyEnvironmentProperties; 475Toolset = linkedProject.ProjectCollection.GetToolset(linkedProject.ToolsVersion); 477TaskRegistry = new TaskRegistry(Toolset, linkedProject.ProjectCollection.ProjectRootElementCache); 479ProjectRootElementCache = linkedProject.ProjectCollection.ProjectRootElementCache; 673this.ProjectRootElementCache = data.Project.ProjectCollection.ProjectRootElementCache;
Microsoft.Build.Engine.OM.UnitTests (10)
Definition\Project_Tests.cs (6)
1237Toolset t = p.ProjectCollection.GetToolset(ObjectModelHelpers.MSBuildDefaultToolsVersion); 1369project.ProjectCollection.UnloadAllProjects(); 2110project.ProjectCollection.RegisterLogger(collectionLogger); 2122project.ProjectCollection.UnregisterAllLoggers(); 2586project.ProjectCollection.UnloadAllProjects(); 2630project.ProjectCollection.UnloadAllProjects();
Definition\ProjectCollection_Tests.cs (2)
876project.ProjectCollection.UnloadProject(project); 919project.ProjectCollection.UnloadProject(project);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
364Assert.NotSame(view.ProjectCollection, real.ProjectCollection);
Microsoft.Build.Engine.UnitTests (3)
FileLogger_Tests.cs (3)
41project.ProjectCollection.UnregisterAllLoggers(); 376project.ProjectCollection.UnregisterAllLoggers(); 413project.ProjectCollection.UnregisterAllLoggers();