12 instantiations of Project
dotnet (1)
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (1)
230
return new
MSBuildProject
(
Microsoft.Build (7)
Construction\Solution\SolutionProjectGenerator.cs (1)
2213
Project msbuildProject = new
Project
(project.AbsolutePath, _globalProperties, childProjectToolsVersion);
Definition\Project.cs (3)
501
return new
Project
(
520
return new
Project
(
539
return new
Project
(
Definition\ProjectCollection.cs (2)
1277
project = new
Project
(fileName, globalProperties, effectiveToolsVersion, this);
1317
return new
Project
(xmlReader, globalProperties, toolsVersion, this);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
102
return new
Project
(Collection, link);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
144
var project = new MSB.Evaluation.
Project
(
NuGet.CommandLine.XPlat (3)
Utility\MSBuildAPIUtility.cs (3)
68
return new SaveableProject { Project = new
Project
(projectRootElement), VirtualProject = isVirtual ? (projectCSProjPath, VirtualProjectBuilder) : null };
83
return new SaveableProject { Project = new
Project
(projectRootElement, globalProperties, toolsVersion: null), VirtualProject = isVirtual ? (projectCSProjPath, VirtualProjectBuilder) : null };
1124
return this with { Project = new
Project
(Project.Xml, globalProperties, toolsVersion: null) };
268 references to Project
dotnet (35)
CommandFactory\CommandResolution\MSBuildProject.cs (1)
18
private readonly
Project
_project;
Commands\New\MSBuildEvaluation\MSBuildEvaluationResult.cs (2)
4
using MSBuildProject = Microsoft.Build.Evaluation.
Project
;
44
public
MSBuildProject
? EvaluatedProject { get; protected set; }
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (9)
11
using MSBuildProject = Microsoft.Build.Evaluation.
Project
;
121
MSBuildProject
evaluatedProject = RunEvaluate(projectPath);
163
Dictionary<string,
MSBuildProject
?> evaluatedTfmBasedProjects = [];
203
private
MSBuildProject
RunEvaluate(string projectToLoad, string? tfm = null)
210
MSBuildProject
? project = GetLoadedProject(projectToLoad, tfm);
239
private
MSBuildProject
? GetLoadedProject(string projectToLoad, string? tfm)
241
MSBuildProject
? project;
242
ICollection<
MSBuildProject
> loadedProjects = _projectCollection.GetLoadedProjects(projectToLoad);
260
foreach (
MSBuildProject
loaded in loadedProjects)
Commands\New\MSBuildEvaluation\MultiTargetEvaluationResult.cs (5)
4
using MSBuildProject = Microsoft.Build.Evaluation.
Project
;
15
internal IReadOnlyDictionary<string,
MSBuildProject
?> EvaluatedProjects { get; private set; } = new Dictionary<string,
MSBuildProject
?>();
19
internal static MultiTargetEvaluationResult CreateSuccess(string path,
MSBuildProject
project, IReadOnlyDictionary<string,
MSBuildProject
?> frameworkBasedResults)
Commands\New\MSBuildEvaluation\NonSDKStyleEvaluationResult.cs (2)
4
using MSBuildProject = Microsoft.Build.Evaluation.
Project
;
19
internal static NonSDKStyleEvaluationResult CreateSuccess(string path,
MSBuildProject
project)
Commands\New\MSBuildEvaluation\ProjectCapabilityConstraint.cs (3)
11
using MSBuildProject = Microsoft.Build.Evaluation.
Project
;
166
foreach (
MSBuildProject
? tfmBasedEvaluation in multiTargetResult.EvaluatedProjects.Values)
173
static void AddProjectCapabilities(HashSet<string> collection,
MSBuildProject
? evaluatedProject)
Commands\New\MSBuildEvaluation\ProjectContextSymbolSource.cs (2)
7
using MSBuildProject = Microsoft.Build.Evaluation.
Project
;
54
foreach (
MSBuildProject
? tfmBasedProject in multiTargetResult.EvaluatedProjects.Values)
Commands\New\MSBuildEvaluation\SDKStyleEvaluationResult.cs (2)
6
using MSBuildProject = Microsoft.Build.Evaluation.
Project
;
22
internal static SDKStyleEvaluationResult CreateSuccess(string path, string targetFramework,
MSBuildProject
project)
Commands\Run\RunCommandSelector.cs (2)
34
private Microsoft.Build.Evaluation.
Project
? _project;
38
private Microsoft.Build.Evaluation.
Project
? _restoreProject;
Extensions\ProjectExtensions.cs (4)
13
public static IEnumerable<string> GetRuntimeIdentifiers(this
Project
project)
22
public static IEnumerable<NuGetFramework> GetTargetFrameworks(this
Project
project)
35
public static IEnumerable<string> GetConfigurations(this
Project
project)
40
public static IEnumerable<string> GetPropertyCommaSeparatedValues(this
Project
project, string propertyName)
MsbuildProject.cs (3)
145
var
project = GetEvaluatedProject();
181
private
Project
GetEvaluatedProject()
185
Project
project;
Microsoft.Build (194)
BackEnd\BuildManager\BuildManager.cs (2)
926
public ProjectInstance GetProjectInstanceForBuild(
Project
project)
1781
private BuildRequestConfiguration CreateConfiguration(
Project
project, BuildRequestConfiguration? existingConfiguration)
BackEnd\Shared\ConfigurationMetadata.cs (1)
37
public ConfigurationMetadata(
Project
project)
Construction\ProjectRootElement.cs (6)
742
return new ProjectRootElement(projectRootElementCache,
Project
.DefaultNewProjectTemplateOptions, isEphemeral: true);
751
return Create(ProjectCollection.GlobalProjectCollection,
Project
.DefaultNewProjectTemplateOptions);
788
return Create(path, ProjectCollection.GlobalProjectCollection,
Project
.DefaultNewProjectTemplateOptions);
806
return Create(path, projectCollection,
Project
.DefaultNewProjectTemplateOptions);
1748
return new ProjectRootElement(projectRootElementCache,
Project
.DefaultNewProjectTemplateOptions);
1883
internal void MarkProjectDirty(
Project
project)
Construction\Solution\SolutionProjectGenerator.cs (2)
21
using Project = Microsoft.Build.Evaluation.
Project
;
2213
Project
msbuildProject = new Project(project.AbsolutePath, _globalProperties, childProjectToolsVersion);
Definition\Project.cs (14)
499
public static
Project
FromFile(string file, ProjectOptions options)
518
public static
Project
FromProjectRootElement(ProjectRootElement rootElement, ProjectOptions options)
537
public static
Project
FromXmlReader(XmlReader reader, ProjectOptions options)
831
/// <see cref="
Project
.ReevaluateIfNecessary()" />
1683
ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.Location, $"{nameof(
Project
)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
1886
public ProjectImpl(
Project
owner, ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings)
1910
public ProjectImpl(
Project
owner, XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
1945
public ProjectImpl(
Project
owner, string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
1973
private
Project
Owner { get; }
3418
ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.Location, $"{nameof(
Project
)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
4047
internal Data(
Project
project, PropertyDictionary<ProjectPropertyInstance> globalProperties, string explicitToolsVersion, string explicitSubToolsetVersion, bool CanEvaluateElementsWithFalseConditions)
4248
internal
Project
Project { get; }
4686
/// Data class representing a result from <see cref="
Project
.GetAllGlobs()"/> and its overloads.
4783
/// Data class representing a result from <see cref="
Project
.GetItemProvenance(string)"/> and its overloads.
Definition\ProjectCollection.cs (50)
190
/// Whether <see cref="
Project
.MarkDirty()">MarkDirty()</see> is temporarily disabled on
440
/// Raised when a <see cref="
Project
"/> contained by this instance is directly changed.
619
public ICollection<
Project
> LoadedProjects => GetLoadedProjects(true, null);
859
/// Whether <see cref="
Project
.MarkDirty()">MarkDirty()</see> is temporarily disabled on
1159
public ICollection<
Project
> GetLoadedProjects(string fullPath)
1169
internal ICollection<
Project
> GetLoadedProjects(bool includeExternal, string fullPath = null)
1171
List<
Project
> loaded;
1174
loaded = fullPath == null ? new List<
Project
>(_loadedProjects) : new List<
Project
>(_loadedProjects.GetMatchingProjectsIfAny(fullPath));
1195
public
Project
LoadProject(string fileName)
1207
public
Project
LoadProject(string fileName, string toolsVersion)
1220
public
Project
LoadProject(string fileName, IDictionary<string, string> globalProperties, string toolsVersion)
1271
Project
project = _loadedProjects.GetMatchingProjectIfAny(fileName, globalProperties, effectiveToolsVersion);
1290
public
Project
LoadProject(XmlReader xmlReader)
1302
public
Project
LoadProject(XmlReader xmlReader, string toolsVersion)
1315
public
Project
LoadProject(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion)
1402
public void UnloadProject(
Project
project)
1452
Project
conflictingProject = GetLoadedProjects(false, null).FirstOrDefault(project => project.UsesProjectRootElement(projectRootElement));
1470
foreach (
Project
project in _loadedProjects)
1515
var projects = new List<
Project
>(_loadedProjects);
1516
foreach (
Project
project in projects)
1542
var projects = new List<
Project
>(_loadedProjects);
1543
foreach (
Project
project in projects)
1589
/// Returns false if it was not unloaded because it was still in use by a loaded <see cref="
Project
"/>.
1604
Project
conflictingProject = GetLoadedProjects(false, null).FirstOrDefault(project => project.UsesProjectRootElement(projectRootElement));
1630
internal void OnAfterRenameLoadedProject(string oldFullPathIfAny,
Project
project)
1669
internal void AfterUpdateLoadedProjectGlobalProperties(
Project
project)
1897
private class LoadedProjectCollection : IEnumerable<
Project
>
1912
private Dictionary<string, List<
Project
>> _loadedProjects = new Dictionary<string, List<
Project
>>(StringComparer.OrdinalIgnoreCase);
1936
public IEnumerator<
Project
> GetEnumerator()
1940
var projects = new List<
Project
>();
1942
foreach (List<
Project
> projectList in _loadedProjects.Values)
1944
foreach (
Project
project in projectList)
1966
internal IList<
Project
> GetMatchingProjectsIfAny(string fullPath)
1970
_loadedProjects.TryGetValue(fullPath, out List<
Project
> candidates);
1972
return candidates ?? (IList<
Project
>)Array.Empty<
Project
>();
1981
internal
Project
GetMatchingProjectIfAny(string fullPath, IDictionary<string, string> globalProperties, string toolsVersion)
1985
if (_loadedProjects.TryGetValue(fullPath, out List<
Project
> candidates))
1987
foreach (
Project
candidate in candidates)
2004
internal void AddProject(
Project
project)
2008
if (!_loadedProjects.TryGetValue(project.FullPath, out List<
Project
> projectList))
2010
projectList = new List<
Project
>();
2014
foreach (
Project
existing in projectList)
2031
internal bool RemoveProject(
Project
project)
2040
internal bool RemoveProject(string projectFullPath,
Project
project)
2044
if (!_loadedProjects.TryGetValue(projectFullPath, out List<
Project
> projectList))
2072
_loadedProjects = new Dictionary<string, List<
Project
>>(StringComparer.OrdinalIgnoreCase);
2081
private static bool HasEquivalentGlobalPropertiesAndToolsVersion(
Project
project, IDictionary<string, string> globalProperties, string toolsVersion)
Definition\ProjectItem.cs (8)
38
private readonly
Project
_project;
110
internal ProjectItem(ProjectItemElement xml,
Project
project)
123
Project
project,
236
public
Project
Project
811
/// Called ONLY by <see cref="Microsoft.Build.Evaluation.
Project
.SplitItemElementIfNecessary(ProjectItemElement)"/>
899
private readonly
Project
_project;
911
internal ProjectItemFactory(
Project
project)
921
internal ProjectItemFactory(
Project
project, ProjectItemElement xml)
Definition\ProjectItemDefinition.cs (3)
36
private readonly
Project
_project;
56
internal ProjectItemDefinition(
Project
project, string itemType)
73
public
Project
Project
Definition\ProjectLoadSettings.cs (3)
51
/// By default, evaluations performed via <see cref="
Project
"/> evaluate and collect elements whose conditions were false (e.g. <see cref="
Project
.ItemsIgnoringCondition"/>).
52
/// This flag turns off this behaviour. <see cref="
Project
"/> members that collect such elements will throw when accessed.
Definition\ProjectMetadata.cs (1)
175
public
Project
Project
Definition\ProjectOptions.cs (1)
14
/// Common <see cref="
Project
" /> constructor arguments.
Definition\ProjectProperty.cs (11)
29
private readonly
Project
_project;
41
internal ProjectProperty(
Project
project)
50
internal ProjectProperty(
Project
project, string evaluatedValueEscaped)
194
public
Project
Project
279
internal static ProjectProperty Create(
Project
project, string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext = null)
291
internal static ProjectProperty Create(
Project
project, ProjectPropertyElement xml, string evaluatedValueEscaped, ProjectProperty predecessor)
331
private static bool ProjectHasMatchingGlobalProperty(
Project
project, string propertyName)
359
internal ProjectPropertyXmlBacked(
Project
project, ProjectPropertyElement xml, string evaluatedValueEscaped)
504
internal ProjectPropertyXmlBackedWithPredecessor(
Project
project, ProjectPropertyElement xml, string evaluatedValueEscaped, ProjectProperty predecessor)
544
internal ProjectPropertyNotXmlBacked(
Project
project, string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved)
678
Project
project, string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext)
Definition\ResolvedImport.cs (1)
36
internal ResolvedImport(
Project
project, ProjectImportElement importingElement, ProjectRootElement importedProject, int versionEvaluated, SdkResult sdkResult)
Evaluation\Evaluator.cs (2)
203
Project
project,
305
Project
project,
Evaluation\IProjectMetadataParent.cs (1)
17
Project
Project
Evaluation\Preprocessor.cs (3)
35
private readonly
Project
_project;
61
private Preprocessor(
Project
project)
79
internal static XmlDocument GetPreprocessedDocument(
Project
project)
Evaluation\ProjectChangedEventArgs.cs (2)
18
internal ProjectChangedEventArgs(
Project
project)
29
public
Project
Project { get; private set; }
Evaluation\ProjectRootElementCacheBase.cs (1)
81
internal virtual void OnProjectDirtied(
Project
sender, ProjectChangedEventArgs e)
Evaluation\SimpleProjectRootElementCache.cs (1)
136
internal override void OnProjectDirtied(
Project
sender, ProjectChangedEventArgs e)
Graph\ProjectGraph.cs (2)
43
/// is provided as a hook to allow scenarios like creating a <see cref="
Project
" />
47
/// using <see cref="
Project
.CreateProjectInstance()" /> with the flag
Instance\ImmutableProjectCollections\ImmutableProjectPropertyCollectionConverter.cs (2)
21
private readonly
Project
_linkedProject;
24
Project
linkedProject,
Instance\ProjectInstance.cs (15)
373
/// Creates a ProjectInstance from an external created <see cref="
Project
"/>.
376
public ProjectInstance(
Project
project, ProjectInstanceSettings settings)
422
/// Creates a ProjectInstance from an immutable <see cref="
Project
"/>.
423
/// The resulting <see cref="ProjectInstance"/> object wraps the <see cref="
Project
"/>
427
/// <param name="linkedProject">The immutable <see cref="
Project
"/>.</param>
429
private ProjectInstance(
Project
linkedProject, bool fastItemLookupNeeded)
673
internal ProjectInstance(Evaluation.
Project
.Data data, string directory, string fullPath, HostServices hostServices, PropertyDictionary<ProjectPropertyInstance> environmentVariableProperties, ProjectInstanceSettings settings)
955
/// <param name="project">The immutable <see cref="
Project
"/> on which the ProjectInstance is based.</param>
957
public static ProjectInstance FromImmutableProjectSource(
Project
project, ProjectInstanceSettings settings)
963
private static IRetrievableEntryHashSet<ProjectItemDefinitionInstance> GetImmutableItemDefinitionsHashSetFromImmutableProject(
Project
linkedProject)
980
Project
linkedProject,
1002
Project
linkedProject,
1051
private static PropertyDictionary<ProjectPropertyInstance> GetImmutablePropertyDictionaryFromImmutableProject(
Project
linkedProject)
1209
/// See <see cref="
Project
.LastEvaluationId"/>.
3501
Project
linkedProject,
Logging\ReusableLogger.cs (2)
16
/// <see cref="Evaluation.ProjectCollection"/>/<see cref="Evaluation.
Project
"/> _and_
17
/// directly during a call to one of the <see cref="ILogger"/>-accepting overloads of <see cref="Evaluation.
Project
.Build()"/>.
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemDefinitionLink.cs (1)
18
public abstract
Project
Project { get; }
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemLink.cs (1)
19
public abstract
Project
Project { get; }
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (47)
17
/// Allow for creating a local representation to external object of type <see cref="
Project
"/>
22
/// Access to remote <see cref="
Project
.Xml"/>.
27
/// Access to remote <see cref="
Project
.ThrowInsteadOfSplittingItemElement"/>.
32
/// Access to remote <see cref="
Project
.IsDirty"/>.
37
/// Access to remote <see cref="
Project
.GlobalProperties"/>.
42
/// Access to remote <see cref="
Project
.ItemTypes"/>.
47
/// Access to remote <see cref="
Project
.Properties"/>.
52
/// Access to remote <see cref="
Project
.ConditionedProperties"/>.
57
/// Access to remote <see cref="
Project
.ItemDefinitions"/>.
62
/// Access to remote <see cref="
Project
.Items"/>.
67
/// Access to remote <see cref="
Project
.ItemsIgnoringCondition"/>.
72
/// Access to remote <see cref="
Project
.Imports"/>.
77
/// Access to remote <see cref="
Project
.ImportsIncludingDuplicates"/>.
82
/// Access to remote <see cref="
Project
.Targets"/>.
87
/// Access to remote <see cref="
Project
.AllEvaluatedProperties"/>.
92
/// Access to remote <see cref="
Project
.AllEvaluatedItemDefinitionMetadata "/>.
97
/// Access to remote <see cref="
Project
.AllEvaluatedItems "/>.
102
/// Access to remote <see cref="
Project
.ToolsVersion"/>.
107
/// Access to remote <see cref="
Project
.SubToolsetVersion"/>.
112
/// Access to remote <see cref="
Project
.SkipEvaluation"/>.
117
/// Access to remote <see cref="
Project
.DisableMarkDirty"/>.
122
/// Access to remote <see cref="
Project
.IsBuildEnabled"/>.
127
/// Access to remote <see cref="
Project
.LastEvaluationId"/>.
132
/// Facilitate remoting the <see cref="
Project
.GetAllGlobs(EvaluationContext)"/>.
137
/// Facilitate remoting the <see cref="
Project
.GetAllGlobs(string, EvaluationContext)"/>.
142
/// Facilitate remoting the <see cref="
Project
.GetItemProvenance(string, EvaluationContext)"/>.
147
/// Facilitate remoting the <see cref="
Project
.GetItemProvenance(string, string, EvaluationContext)"/>.
152
/// Facilitate remoting the <see cref="
Project
.GetItemProvenance(ProjectItem, EvaluationContext)"/>.
157
/// Facilitate remoting the <see cref="
Project
.GetLogicalProject"/>.
162
/// Facilitate remoting the <see cref="
Project
.GetProperty"/>.
167
/// Facilitate remoting the <see cref="
Project
.GetPropertyValue"/>.
172
/// Facilitate remoting the <see cref="
Project
.SetProperty"/>.
177
/// Facilitate remoting the <see cref="
Project
.SetGlobalProperty"/>.
182
/// Facilitate remoting the <see cref="
Project
.AddItem(string, string, IEnumerable{KeyValuePair{string, string}})"/>.
187
/// Facilitate remoting the <see cref="
Project
.AddItemFast(string, string, IEnumerable{KeyValuePair{string, string}})"/>.
192
/// Facilitate remoting the <see cref="
Project
.GetItems"/>.
197
/// Facilitate remoting the <see cref="
Project
.GetItemsIgnoringCondition"/>.
202
/// Facilitate remoting the <see cref="
Project
.GetItemsByEvaluatedInclude"/>.
207
/// Facilitate remoting the <see cref="
Project
.RemoveProperty"/>.
212
/// Facilitate remoting the <see cref="
Project
.RemoveGlobalProperty"/>.
217
/// Facilitate remoting the <see cref="
Project
.RemoveItem"/>.
222
/// Facilitate remoting the <see cref="
Project
.RemoveItems"/>.
227
/// Facilitate remoting the <see cref="
Project
.ExpandString"/>.
232
/// Facilitate remoting the <see cref="
Project
.CreateProjectInstance(ProjectInstanceSettings, EvaluationContext)"/>.
237
/// Facilitate remoting the <see cref="
Project
.MarkDirty"/>.
242
/// Facilitate remoting the <see cref="
Project
.ReevaluateIfNecessary(EvaluationContext)"/>.
247
/// Facilitate remoting the <see cref="
Project
.SaveLogicalProject"/>.
ObjectModelRemoting\DefinitionObjectsLinks\ProjectPropertyLink.cs (1)
18
public abstract
Project
Project { get; }
ObjectModelRemoting\ExternalProjectsProvider.cs (1)
19
public abstract ICollection<
Project
> GetLoadedProjects(string filePath);
ObjectModelRemoting\LinkedObjectFactory.cs (9)
73
public static IReadOnlyCollection<
Project
> GetLocalProjects(ProjectCollection collection, string projectFile = null)
75
return (IReadOnlyCollection<
Project
>)collection.GetLoadedProjects(false, projectFile);
80
public ProjectItem Create(ProjectItemLink link,
Project
project = null, ProjectItemElement xml = null)
88
public ProjectItemDefinition Create(ProjectItemDefinitionLink link,
Project
project = null)
95
public
Project
Create(ProjectLink link)
112
public ProjectProperty Create(ProjectPropertyLink link,
Project
project = null)
245
internal LinkedProjectItem(ProjectItemElement xml,
Project
project, ProjectItemLink link)
269
internal LinkedProjectItemDefinition(ProjectItemDefinitionLink link,
Project
project, string itemType)
324
internal LinkedProjectProperty(
Project
project, ProjectPropertyLink link)
Microsoft.CodeAnalysis.ExternalAccess.HotReload (2)
Api\HotReloadMSBuildWorkspace.cs (1)
32
public HotReloadMSBuildWorkspace(ILogger logger, Func<string, (ImmutableArray<MSB.Execution.ProjectInstance> instances, MSB.Evaluation.
Project
? project)> getBuildProjects)
Api\HotReloadMSBuildWorkspace.ProjectFileInfoProvider.cs (1)
18
Func<string, (ImmutableArray<MSB.Execution.ProjectInstance> instances, MSB.Evaluation.
Project
? project)> getBuildProjects,
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (12)
AbstractBuildHost.cs (1)
183
private int AddProjectFileTarget(Build.Evaluation.
Project
? project, string languageName, DiagnosticLog log)
Build\ProjectBuildManager.cs (8)
93
private static async Task<(MSB.Evaluation.
Project
? project, DiagnosticLog log)> LoadProjectAsync(
124
private static (MSB.Evaluation.
Project
? project, DiagnosticLog log) LoadProjectCore(
144
var
project = new MSB.Evaluation.Project(
160
public Task<(MSB.Evaluation.
Project
? project, DiagnosticLog log)> LoadProjectAsync(
186
public (MSB.Evaluation.
Project
? project, DiagnosticLog log) LoadProject(string path, Stream readStream)
293
MSB.Evaluation.
Project
project, DiagnosticLog log, CancellationToken cancellationToken)
337
MSB.Evaluation.
Project
project, DiagnosticLog log, CancellationToken cancellationToken)
348
MSB.Evaluation.
Project
project, string[] requiredTargets, string[] optionalTargets, DiagnosticLog log, CancellationToken cancellationToken)
MSBuild\ProjectFile\ProjectFile.cs (1)
18
MSB.Evaluation.
Project
? project,
MSBuild\ProjectFile\ProjectInstanceReader.cs (2)
17
public readonly MSB.Evaluation.
Project
? Project;
28
MSB.Evaluation.
Project
? project)
Microsoft.DotNet.Arcade.Sdk (2)
src\InstallDotNetCore.cs (2)
86
var
proj =
Project
.FromFile(VersionsPropsPath, new Build.Definition.ProjectOptions() { ProjectCollection = new ProjectCollection() });
MSBuild (5)
JsonOutputFormatter.cs (1)
82
internal void AddItemsInJsonFormat(string[] itemNames,
Project
project)
XMake.cs (4)
829
Project
project = collection.LoadProject(projectFile, globalProperties, toolsVersion);
1125
private static ExitType OutputPropertiesAfterEvaluation(string[] getProperty, string[] getItem,
Project
project, TextWriter outputStream)
1475
Project
project = projectCollection.LoadProject(projectFile, globalProperties, toolsVersion);
1759
Project
project = projectCollection.LoadProject(projectFile, globalProperties, toolsVersion);
NuGet.CommandLine.XPlat (18)
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (1)
97
Project
project = _msbuildUtility.GetProject(projectPath).Project;
Commands\Why\WhyCommandRunner.cs (1)
111
Project
project = _msbuildUtility.GetProject(projectPath).Project;
Utility\MSBuildAPIUtility.cs (16)
86
private static bool IsCentralPackageManagementEnabled(
Project
project)
203
var
project = GetProject(packageReferenceArgs.ProjectPath).Project;
396
static ProjectItemGroupElement GetOrCreateItemGroup(string targetFrameworkAlias,
Project
project)
411
private void AddPackageVersionIntoItemGroupCPM(
Project
project, LibraryDependency libraryDependency)
430
internal static ProjectRootElement GetDirectoryBuildPropsRootElement(
Project
project)
475
internal void AddPackageReferenceIntoItemGroupCPM(
Project
project, ProjectItemGroupElement itemGroup,
509
internal static IEnumerable<ProjectItemGroupElement> GetItemGroups(
Project
project)
543
internal static ProjectItemGroupElement CreateItemGroup(
Project
project, string condition)
708
internal static bool IsPackageReferenceProject(
Project
project)
727
Project
project, IEnumerable<string> userInputFrameworks, LockFile assetsFile, bool transitive)
892
private static IEnumerable<ProjectItem> GetPackageReferences(
Project
project, string packageId)
915
private static IEnumerable<ProjectItem> GetPackageReferences(
Project
project, LibraryDependency libraryDependency)
927
private static IEnumerable<InstalledPackageReference> GetPackageReferencesFromTargets(
Project
project, string framework)
996
var
projectPerFramework = project.WithGlobalProperties(globalProperties).Project;
1042
private static IEnumerable<string> GetProjectFrameworks(
Project
project)
1091
public required
Project
Project { get; init; }