12 instantiations of Project
dotnet (1)
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (1)
230
return new
MSBuildProject
(
Microsoft.Build (7)
Construction\Solution\SolutionProjectGenerator.cs (1)
2219
Project msbuildProject = new
Project
(project.AbsolutePath, _globalProperties, childProjectToolsVersion);
Definition\Project.cs (3)
502
return new
Project
(
522
return new
Project
(
542
return new
Project
(
Definition\ProjectCollection.cs (2)
1327
project ??= new
Project
(fileName, globalProperties, effectiveToolsVersion, this);
1366
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)
160
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 };
1125
return this with { Project = new
Project
(Project.Xml, globalProperties, toolsVersion: null) };
273 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)
35
private Microsoft.Build.Evaluation.
Project
? _project;
39
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)
149
var
project = GetEvaluatedProject();
185
private
Project
GetEvaluatedProject()
189
Project
project;
dotnet-openapi (6)
Commands\BaseCommand.cs (3)
125
protected static
Project
LoadProject(FileInfo projectFile)
127
var
project = ProjectCollection.GlobalProjectCollection.LoadProject(
154
var
project = LoadProject(projectFile);
Commands\RefreshCommand.cs (1)
41
var
project = LoadProject(projectFile);
Commands\RemoveCommand.cs (1)
53
var
project = LoadProject(projectFile);
ProjectExtensions.cs (1)
12
public static void AddElementWithAttributes(this
Project
project, string tagName, string include, IDictionary<string, string> metadata)
Microsoft.Build (197)
BackEnd\BuildManager\BuildManager.cs (2)
990
public ProjectInstance GetProjectInstanceForBuild(
Project
project)
1858
private BuildRequestConfiguration CreateConfiguration(
Project
project, BuildRequestConfiguration? existingConfiguration)
BackEnd\Shared\ConfigurationMetadata.cs (1)
37
public ConfigurationMetadata(
Project
project)
Construction\ProjectRootElement.cs (6)
736
return new ProjectRootElement(projectRootElementCache,
Project
.DefaultNewProjectTemplateOptions, isEphemeral: true);
745
return Create(ProjectCollection.GlobalProjectCollection,
Project
.DefaultNewProjectTemplateOptions);
782
return Create(path, ProjectCollection.GlobalProjectCollection,
Project
.DefaultNewProjectTemplateOptions);
800
return Create(path, projectCollection,
Project
.DefaultNewProjectTemplateOptions);
1742
return new ProjectRootElement(projectRootElementCache,
Project
.DefaultNewProjectTemplateOptions);
1877
internal void MarkProjectDirty(
Project
project)
Construction\Solution\SolutionProjectGenerator.cs (2)
22
using Project = Microsoft.Build.Evaluation.
Project
;
2219
Project
msbuildProject = new Project(project.AbsolutePath, _globalProperties, childProjectToolsVersion);
Definition\Project.cs (15)
499
public static
Project
FromFile(string file, ProjectOptions options)
519
public static
Project
FromProjectRootElement(ProjectRootElement rootElement, ProjectOptions options)
539
public static
Project
FromXmlReader(XmlReader reader, ProjectOptions options)
555
/// <see cref="
Project
"/> only supports full evaluation. Throws if a caller requests a partial
849
/// <see cref="
Project
.ReevaluateIfNecessary()" />
1712
ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.Location, $"{nameof(
Project
)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
1915
public ProjectImpl(
Project
owner, ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings)
1939
public ProjectImpl(
Project
owner, XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
1974
public ProjectImpl(
Project
owner, string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
2002
private
Project
Owner { get; }
3449
ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.Location, $"{nameof(
Project
)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
4078
internal Data(
Project
project, PropertyDictionary<ProjectPropertyInstance> globalProperties, string explicitToolsVersion, string explicitSubToolsetVersion, bool CanEvaluateElementsWithFalseConditions)
4279
internal
Project
Project { get; }
4714
/// Data class representing a result from <see cref="
Project
.GetAllGlobs()"/> and its overloads.
4811
/// Data class representing a result from <see cref="
Project
.GetItemProvenance(string)"/> and its overloads.
Definition\ProjectCollection.cs (50)
196
/// Whether <see cref="
Project
.MarkDirty()">MarkDirty()</see> is temporarily disabled on
472
/// Raised when a <see cref="
Project
"/> contained by this instance is directly changed.
652
public ICollection<
Project
> LoadedProjects => GetLoadedProjects(true, null);
892
/// Whether <see cref="
Project
.MarkDirty()">MarkDirty()</see> is temporarily disabled on
1192
public ICollection<
Project
> GetLoadedProjects(string fullPath)
1202
internal ICollection<
Project
> GetLoadedProjects(bool includeExternal, string fullPath = null)
1204
List<
Project
> loaded;
1207
loaded = fullPath == null ? new List<
Project
>(_loadedProjects) : new List<
Project
>(_loadedProjects.GetMatchingProjectsIfAny(fullPath));
1228
public
Project
LoadProject(string fileName)
1240
public
Project
LoadProject(string fileName, string toolsVersion)
1253
public
Project
LoadProject(string fileName, IDictionary<string, string> globalProperties, string toolsVersion)
1324
Project
project = _loadedProjects.GetMatchingProjectIfAny(fileName, globalProperties, effectiveToolsVersion);
1339
public
Project
LoadProject(XmlReader xmlReader)
1351
public
Project
LoadProject(XmlReader xmlReader, string toolsVersion)
1364
public
Project
LoadProject(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion)
1452
public void UnloadProject(
Project
project)
1502
Project
conflictingProject = GetLoadedProjects(false, null).FirstOrDefault(project => project.UsesProjectRootElement(projectRootElement));
1520
foreach (
Project
project in _loadedProjects)
1565
var projects = new List<
Project
>(_loadedProjects);
1566
foreach (
Project
project in projects)
1592
var projects = new List<
Project
>(_loadedProjects);
1593
foreach (
Project
project in projects)
1639
/// Returns false if it was not unloaded because it was still in use by a loaded <see cref="
Project
"/>.
1654
Project
conflictingProject = GetLoadedProjects(false, null).FirstOrDefault(project => project.UsesProjectRootElement(projectRootElement));
1680
internal void OnAfterRenameLoadedProject(string oldFullPathIfAny,
Project
project)
1719
internal void AfterUpdateLoadedProjectGlobalProperties(
Project
project)
1947
private class LoadedProjectCollection : IEnumerable<
Project
>
1962
private Dictionary<string, List<
Project
>> _loadedProjects = new Dictionary<string, List<
Project
>>(StringComparer.OrdinalIgnoreCase);
1986
public IEnumerator<
Project
> GetEnumerator()
1990
var projects = new List<
Project
>();
1992
foreach (List<
Project
> projectList in _loadedProjects.Values)
1994
foreach (
Project
project in projectList)
2016
internal IList<
Project
> GetMatchingProjectsIfAny(string fullPath)
2020
_loadedProjects.TryGetValue(fullPath, out List<
Project
> candidates);
2022
return candidates ?? (IList<
Project
>)Array.Empty<
Project
>();
2031
internal
Project
GetMatchingProjectIfAny(string fullPath, IDictionary<string, string> globalProperties, string toolsVersion)
2035
if (_loadedProjects.TryGetValue(fullPath, out List<
Project
> candidates))
2037
foreach (
Project
candidate in candidates)
2054
internal void AddProject(
Project
project)
2058
if (!_loadedProjects.TryGetValue(project.FullPath, out List<
Project
> projectList))
2060
projectList = new List<
Project
>();
2064
foreach (
Project
existing in projectList)
2081
internal bool RemoveProject(
Project
project)
2090
internal bool RemoveProject(string projectFullPath,
Project
project)
2094
if (!_loadedProjects.TryGetValue(projectFullPath, out List<
Project
> projectList))
2122
_loadedProjects = new Dictionary<string, List<
Project
>>(StringComparer.OrdinalIgnoreCase);
2131
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 (3)
15
/// Common <see cref="
Project
" /> constructor arguments.
63
/// <see cref="Microsoft.Build.Execution.ProjectInstance"/>; passing a partial stage to a <see cref="
Project
"/> factory
64
/// (for example <see cref="
Project
.FromFile(string, ProjectOptions)"/>) throws
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)
35
internal ResolvedImport(
Project
project, ProjectImportElement importingElement, ProjectRootElement importedProject, int versionEvaluated, SdkResult sdkResult)
Evaluation\Evaluator.cs (2)
215
Project
project,
319
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)
17
internal ProjectChangedEventArgs(
Project
project)
28
public
Project
Project { get; private set; }
Evaluation\ProjectRootElementCacheBase.cs (1)
81
internal virtual void OnProjectDirtied(
Project
sender, ProjectChangedEventArgs e)
Evaluation\SimpleProjectRootElementCache.cs (1)
133
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)
382
/// Creates a ProjectInstance from an external created <see cref="
Project
"/>.
385
public ProjectInstance(
Project
project, ProjectInstanceSettings settings)
431
/// Creates a ProjectInstance from an immutable <see cref="
Project
"/>.
432
/// The resulting <see cref="ProjectInstance"/> object wraps the <see cref="
Project
"/>
436
/// <param name="linkedProject">The immutable <see cref="
Project
"/>.</param>
438
private ProjectInstance(
Project
linkedProject, bool fastItemLookupNeeded)
684
internal ProjectInstance(Evaluation.
Project
.Data data, string directory, string fullPath, HostServices hostServices, PropertyDictionary<ProjectPropertyInstance> environmentVariableProperties, ProjectInstanceSettings settings)
967
/// <param name="project">The immutable <see cref="
Project
"/> on which the ProjectInstance is based.</param>
969
public static ProjectInstance FromImmutableProjectSource(
Project
project, ProjectInstanceSettings settings)
975
private static IRetrievableEntryHashSet<ProjectItemDefinitionInstance> GetImmutableItemDefinitionsHashSetFromImmutableProject(
Project
linkedProject)
992
Project
linkedProject,
1014
Project
linkedProject,
1063
private static PropertyDictionary<ProjectPropertyInstance> GetImmutablePropertyDictionaryFromImmutableProject(
Project
linkedProject)
1222
/// See <see cref="
Project
.LastEvaluationId"/>.
3558
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)
18
/// Allow for creating a local representation to external object of type <see cref="
Project
"/>
23
/// Access to remote <see cref="
Project
.Xml"/>.
28
/// Access to remote <see cref="
Project
.ThrowInsteadOfSplittingItemElement"/>.
33
/// Access to remote <see cref="
Project
.IsDirty"/>.
38
/// Access to remote <see cref="
Project
.GlobalProperties"/>.
43
/// Access to remote <see cref="
Project
.ItemTypes"/>.
48
/// Access to remote <see cref="
Project
.Properties"/>.
53
/// Access to remote <see cref="
Project
.ConditionedProperties"/>.
58
/// Access to remote <see cref="
Project
.ItemDefinitions"/>.
63
/// Access to remote <see cref="
Project
.Items"/>.
68
/// Access to remote <see cref="
Project
.ItemsIgnoringCondition"/>.
73
/// Access to remote <see cref="
Project
.Imports"/>.
78
/// Access to remote <see cref="
Project
.ImportsIncludingDuplicates"/>.
83
/// Access to remote <see cref="
Project
.Targets"/>.
88
/// Access to remote <see cref="
Project
.AllEvaluatedProperties"/>.
93
/// Access to remote <see cref="
Project
.AllEvaluatedItemDefinitionMetadata "/>.
98
/// Access to remote <see cref="
Project
.AllEvaluatedItems "/>.
103
/// Access to remote <see cref="
Project
.ToolsVersion"/>.
108
/// Access to remote <see cref="
Project
.SubToolsetVersion"/>.
113
/// Access to remote <see cref="
Project
.SkipEvaluation"/>.
118
/// Access to remote <see cref="
Project
.DisableMarkDirty"/>.
123
/// Access to remote <see cref="
Project
.IsBuildEnabled"/>.
128
/// Access to remote <see cref="
Project
.LastEvaluationId"/>.
133
/// Facilitate remoting the <see cref="
Project
.GetAllGlobs(EvaluationContext)"/>.
138
/// Facilitate remoting the <see cref="
Project
.GetAllGlobs(string, EvaluationContext)"/>.
143
/// Facilitate remoting the <see cref="
Project
.GetItemProvenance(string, EvaluationContext)"/>.
148
/// Facilitate remoting the <see cref="
Project
.GetItemProvenance(string, string, EvaluationContext)"/>.
153
/// Facilitate remoting the <see cref="
Project
.GetItemProvenance(ProjectItem, EvaluationContext)"/>.
158
/// Facilitate remoting the <see cref="
Project
.GetLogicalProject"/>.
163
/// Facilitate remoting the <see cref="
Project
.GetProperty"/>.
168
/// Facilitate remoting the <see cref="
Project
.GetPropertyValue"/>.
173
/// Facilitate remoting the <see cref="
Project
.SetProperty"/>.
178
/// Facilitate remoting the <see cref="
Project
.SetGlobalProperty"/>.
183
/// Facilitate remoting the <see cref="
Project
.AddItem(string, string, IEnumerable{KeyValuePair{string, string}})"/>.
188
/// Facilitate remoting the <see cref="
Project
.AddItemFast(string, string, IEnumerable{KeyValuePair{string, string}})"/>.
193
/// Facilitate remoting the <see cref="
Project
.GetItems"/>.
198
/// Facilitate remoting the <see cref="
Project
.GetItemsIgnoringCondition"/>.
203
/// Facilitate remoting the <see cref="
Project
.GetItemsByEvaluatedInclude"/>.
208
/// Facilitate remoting the <see cref="
Project
.RemoveProperty"/>.
213
/// Facilitate remoting the <see cref="
Project
.RemoveGlobalProperty"/>.
218
/// Facilitate remoting the <see cref="
Project
.RemoveItem"/>.
223
/// Facilitate remoting the <see cref="
Project
.RemoveItems"/>.
228
/// Facilitate remoting the <see cref="
Project
.ExpandString"/>.
233
/// Facilitate remoting the <see cref="
Project
.CreateProjectInstance(ProjectInstanceSettings, EvaluationContext)"/>.
238
/// Facilitate remoting the <see cref="
Project
.MarkDirty"/>.
243
/// Facilitate remoting the <see cref="
Project
.ReevaluateIfNecessary(EvaluationContext)"/>.
248
/// 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 (11)
AbstractBuildHost.cs (1)
188
private int AddProjectFileTarget(Build.Evaluation.
Project
? project, string languageName, DiagnosticLog log)
Build\ProjectBuildManager.cs (7)
107
public async Task<(MSB.Evaluation.
Project
? project, DiagnosticLog log)> LoadProjectAsync(
140
private (MSB.Evaluation.
Project
? project, DiagnosticLog log) LoadProjectCore(
160
var
project = new MSB.Evaluation.Project(
176
public (MSB.Evaluation.
Project
? project, DiagnosticLog log) LoadProject(string path, Stream readStream)
215
MSB.Evaluation.
Project
project, DiagnosticLog log, CancellationToken cancellationToken)
261
MSB.Evaluation.
Project
project, DiagnosticLog log, CancellationToken cancellationToken)
270
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;
29
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 (2)
XMake.cs (2)
1722
Project
project = projectCollection.LoadProject(projectFile, globalProperties, toolsVersion);
2002
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)
928
private static IEnumerable<InstalledPackageReference> GetPackageReferencesFromTargets(
Project
project, string framework)
997
var
projectPerFramework = project.WithGlobalProperties(globalProperties).Project;
1043
private static IEnumerable<string> GetProjectFrameworks(
Project
project)
1092
public required
Project
Project { get; init; }