10 instantiations of ProjectCollection
dotnet-aot (1)
Microsoft.Build (3)
Definition\ProjectCollection.cs (2)
314/// This constructor disables target output logging, so TerminalLogger and other loggers may not work well. Prefer <see cref="ProjectCollection(IDictionary{string, string}, IEnumerable{ILogger}, IEnumerable{ForwardingLoggerRecord}, ToolsetDefinitionLocations, int, bool, bool, bool, bool, bool)"/> instead to control this behavior.
528var local = new ProjectCollection(null, null, ToolsetDefinitionLocations.Default,
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.HotReload.Watch (1)
MSBuild (2)
NuGet.Build.Tasks.Console (1)
184 references to ProjectCollection
dotnet-aot (6)
dotnet-openapi (1)
Microsoft.Build (127)
Construction\ProjectRootElement.cs (22)
403public string EscapedFullPath => _escapedFullPath ?? (_escapedFullPath = ProjectCollection.Escape(FullPath));
747return Create(ProjectCollection.GlobalProjectCollection, Project.DefaultNewProjectTemplateOptions);
756return Create(ProjectCollection.GlobalProjectCollection, projectFileOptions);
763public static ProjectRootElement Create(ProjectCollection projectCollection)
769/// Initialize an in-memory, empty ProjectRootElement instance that can be saved later using the specified <see cref="ProjectCollection"/> and <see cref="NewProjectFileOptions"/>.
771public static ProjectRootElement Create(ProjectCollection projectCollection, NewProjectFileOptions projectFileOptions)
784return Create(path, ProjectCollection.GlobalProjectCollection, Project.DefaultNewProjectTemplateOptions);
793return Create(path, ProjectCollection.GlobalProjectCollection, newProjectFileOptions);
800public static ProjectRootElement Create(string path, ProjectCollection projectCollection)
809public static ProjectRootElement Create(string path, ProjectCollection projectCollection, NewProjectFileOptions newProjectFileOptions)
829return Create(xmlReader, ProjectCollection.GlobalProjectCollection, preserveFormatting: false);
837public static ProjectRootElement Create(XmlReader xmlReader, ProjectCollection projectCollection)
847public static ProjectRootElement Create(XmlReader xmlReader, ProjectCollection projectCollection, bool preserveFormatting)
862return Open(path, ProjectCollection.GlobalProjectCollection);
870public static ProjectRootElement Open(string path, ProjectCollection projectCollection)
880public static ProjectRootElement Open(string path, ProjectCollection projectCollection, bool? preserveFormatting)
904return TryOpen(path, ProjectCollection.GlobalProjectCollection);
912/// <param name="projectCollection">The <see cref="ProjectCollection"/> to load the project into.</param>
918public static ProjectRootElement TryOpen(string path, ProjectCollection projectCollection)
928/// <param name="projectCollection">The <see cref="ProjectCollection"/> to load the project into.</param>
937public static ProjectRootElement TryOpen(string path, ProjectCollection projectCollection, bool? preserveFormatting)
1783return new ProjectRootElement(document, ProjectCollection.GlobalProjectCollection.ProjectRootElementCache);
Definition\Project.cs (26)
104internal Project(ProjectCollection projectCollection, ProjectLink link)
129: this(ProjectRootElement.Create(ProjectCollection.GlobalProjectCollection, newProjectFileOptions))
138public Project(ProjectCollection projectCollection)
148public Project(ProjectCollection projectCollection, NewProjectFileOptions newProjectFileOptions)
161public Project(IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection)
175public Project(IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection, NewProjectFileOptions newProjectFileOptions)
204: this(xml, globalProperties, toolsVersion, ProjectCollection.GlobalProjectCollection)
219public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection)
236public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
254public Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
259private Project(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings,
298: this(xmlReader, globalProperties, toolsVersion, ProjectCollection.GlobalProjectCollection)
313public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection)
330public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
348public Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
353private Project(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings,
391: this(projectFile, globalProperties, toolsVersion, ProjectCollection.GlobalProjectCollection)
407public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection)
425public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
444public Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
449private Project(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings,
496options.ProjectCollection ?? ProjectCollection.GlobalProjectCollection,
516options.ProjectCollection ?? ProjectCollection.GlobalProjectCollection,
536options.ProjectCollection ?? ProjectCollection.GlobalProjectCollection,
588public ProjectCollection ProjectCollection { get; }
1997private ProjectCollection ProjectCollection => Owner.ProjectCollection;
Definition\Toolset.cs (4)
159public Toolset(string toolsVersion, string toolsPath, ProjectCollection projectCollection, string msbuildOverrideTasksPath)
175public Toolset(string toolsVersion, string toolsPath, IDictionary<string, string> buildProperties, ProjectCollection projectCollection, string msbuildOverrideTasksPath)
192public Toolset(string toolsVersion, string toolsPath, IDictionary<string, string> buildProperties, ProjectCollection projectCollection, IDictionary<string, SubToolset> subToolsets, string msbuildOverrideTasksPath)
293internal Toolset(string toolsVersion, string toolsPath, PropertyDictionary<ProjectPropertyInstance> buildProperties, ProjectCollection projectCollection, DirectoryGetFiles getFiles, LoadXmlFromPath loadXmlFromPath, string msbuildOverrideTasksPath, DirectoryExists directoryExists)
Graph\ProjectGraph.cs (19)
39/// <param name="projectCollection">The <see cref="ProjectCollection" /> context for parsing.</param>
59ProjectCollection projectCollection);
117: this(new ProjectGraphEntryPoint(entryProjectFile).AsEnumerable(), ProjectCollection.GlobalProjectCollection, null)
130: this(ProjectGraphEntryPoint.CreateEnumerable(entryProjectFiles), ProjectCollection.GlobalProjectCollection, null)
146public ProjectGraph(string entryProjectFile, ProjectCollection projectCollection)
163public ProjectGraph(IEnumerable<string> entryProjectFiles, ProjectCollection projectCollection)
189public ProjectGraph(string entryProjectFile, ProjectCollection projectCollection, ProjectInstanceFactoryFunc projectInstanceFactory)
207: this(new ProjectGraphEntryPoint(entryProjectFile, globalProperties).AsEnumerable(), ProjectCollection.GlobalProjectCollection, null)
224: this(ProjectGraphEntryPoint.CreateEnumerable(entryProjectFiles, globalProperties), ProjectCollection.GlobalProjectCollection, null)
244public ProjectGraph(string entryProjectFile, IDictionary<string, string> globalProperties, ProjectCollection projectCollection)
265public ProjectGraph(IEnumerable<string> entryProjectFiles, IDictionary<string, string> globalProperties, ProjectCollection projectCollection)
278: this(entryPoint.AsEnumerable(), ProjectCollection.GlobalProjectCollection, null)
290: this(entryPoints, ProjectCollection.GlobalProjectCollection, null)
305public ProjectGraph(ProjectGraphEntryPoint entryPoint, ProjectCollection projectCollection)
336ProjectCollection projectCollection,
376ProjectCollection projectCollection,
420ProjectCollection projectCollection,
972ProjectCollection projectCollection)
986ProjectCollection projectCollection,
Instance\ProjectInstance.cs (13)
234: this(projectFile, globalProperties, toolsVersion, ProjectCollection.GlobalProjectCollection)
250public ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection)
268public ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection)
285internal ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, EvaluationContext context, bool interactive = false)
309private ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
341: this(xml, null, null, ProjectCollection.GlobalProjectCollection)
357public ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ProjectCollection projectCollection)
376public ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection)
553private ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
630internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, int visualStudioVersionFromSolution, ProjectCollection projectCollection, ISdkResolverService sdkResolverService, int submissionId)
645internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ILoggingService loggingService, int visualStudioVersionFromSolution, ProjectCollection projectCollection, ISdkResolverService sdkResolverService, int submissionId)
936options.ProjectCollection ?? ProjectCollection.GlobalProjectCollection,
956options.ProjectCollection ?? ProjectCollection.GlobalProjectCollection,
Microsoft.Build.Tasks.Git (7)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.DotNet.Cli.Utils (1)
Microsoft.DotNet.HotReload.Watch (6)
Microsoft.DotNet.ProjectTools (4)
Microsoft.NET.Build.Tasks (1)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.SourceLink.AzureDevOpsServer.Git (1)
Microsoft.SourceLink.AzureRepos.Git (1)
Microsoft.SourceLink.Bitbucket.Git (1)
Microsoft.SourceLink.Gitea (1)
Microsoft.SourceLink.Gitee (1)
Microsoft.SourceLink.GitHub (1)
Microsoft.SourceLink.GitLab (1)
Microsoft.SourceLink.GitWeb (1)
MSBuild (9)
XMake.cs (9)
1119using (ProjectCollection collection = new(globalProperties, loggers, ToolsetDefinitionLocations.Default))
1445ProjectCollection.Version?.ToString(),
1703ProjectCollection projectCollection = null;
2114private static bool PrintTargets(string projectFile, string toolsVersion, Dictionary<string, string> globalProperties, TextWriter targetsWriter, ProjectCollection projectCollection)
2163ProjectCollection.DisplayVersion),
4228Assembly engineAssembly = typeof(ProjectCollection).Assembly;
4287Assembly engineAssembly = typeof(ProjectCollection).Assembly;
4748Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("MSBuildVersionMessage", ProjectCollection.DisplayVersion, NativeMethods.FrameworkName));
4803Console.WriteLine(ProjectCollection.Version.ToString());
NuGet.Build.Tasks.Console (1)
NuGet.CommandLine.XPlat (11)