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)
490
return new
Project
(
510
return new
Project
(
530
return new
Project
(
Definition\ProjectCollection.cs (2)
1371
project ??= new
Project
(fileName, globalProperties, effectiveToolsVersion, this);
1410
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)
173
var project = new MSB.Evaluation.
Project
(
NuGet.CommandLine.XPlat (3)
Utility\MSBuildAPIUtility.cs (3)
69
return new SaveableProject { Project = new
Project
(projectRootElement), VirtualProject = isVirtual ? (projectCSProjPath, VirtualProjectBuilder) : null };
84
return new SaveableProject { Project = new
Project
(projectRootElement, globalProperties, toolsVersion: null), VirtualProject = isVirtual ? (projectCSProjPath, VirtualProjectBuilder) : null };
1127
return this with { Project = new
Project
(Project.Xml, globalProperties, toolsVersion: null) };
273 references to Project
dotnet (32)
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)
39
private Microsoft.Build.Evaluation.
Project
? _project;
42
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)
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 (199)
BackEnd\BuildManager\BuildManager.cs (2)
995
public ProjectInstance GetProjectInstanceForBuild(
Project
project)
1875
private BuildRequestConfiguration CreateConfiguration(
Project
project, BuildRequestConfiguration? existingConfiguration)
BackEnd\Shared\ConfigurationMetadata.cs (1)
37
public ConfigurationMetadata(
Project
project)
Construction\ProjectRootElement.cs (6)
738
return new ProjectRootElement(projectRootElementCache,
Project
.DefaultNewProjectTemplateOptions, isEphemeral: true);
747
return Create(ProjectCollection.GlobalProjectCollection,
Project
.DefaultNewProjectTemplateOptions);
784
return Create(path, ProjectCollection.GlobalProjectCollection,
Project
.DefaultNewProjectTemplateOptions);
802
return Create(path, projectCollection,
Project
.DefaultNewProjectTemplateOptions);
1744
return new ProjectRootElement(projectRootElementCache,
Project
.DefaultNewProjectTemplateOptions);
1879
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)
487
public static
Project
FromFile(string file, ProjectOptions options)
507
public static
Project
FromProjectRootElement(ProjectRootElement rootElement, ProjectOptions options)
527
public static
Project
FromXmlReader(XmlReader reader, ProjectOptions options)
543
/// <see cref="
Project
"/> only supports full evaluation. Throws if a caller requests a partial
837
/// <see cref="
Project
.ReevaluateIfNecessary()" />
1700
ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.Location, $"{nameof(
Project
)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
1903
public ProjectImpl(
Project
owner, ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings)
1927
public ProjectImpl(
Project
owner, XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
1962
public ProjectImpl(
Project
owner, string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
1990
private
Project
Owner { get; }
3279
ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.Location, $"{nameof(
Project
)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
3908
internal Data(
Project
project, PropertyDictionary<ProjectPropertyInstance> globalProperties, string explicitToolsVersion, string explicitSubToolsetVersion, bool CanEvaluateElementsWithFalseConditions)
4109
internal
Project
Project { get; }
4544
/// Data class representing a result from <see cref="
Project
.GetAllGlobs()"/> and its overloads.
4641
/// 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
506
/// Raised when a <see cref="
Project
"/> contained by this instance is directly changed.
696
public ICollection<
Project
> LoadedProjects => GetLoadedProjects(true, null);
936
/// Whether <see cref="
Project
.MarkDirty()">MarkDirty()</see> is temporarily disabled on
1236
public ICollection<
Project
> GetLoadedProjects(string fullPath)
1246
internal ICollection<
Project
> GetLoadedProjects(bool includeExternal, string fullPath = null)
1248
List<
Project
> loaded;
1251
loaded = fullPath == null ? new List<
Project
>(_loadedProjects) : new List<
Project
>(_loadedProjects.GetMatchingProjectsIfAny(fullPath));
1272
public
Project
LoadProject(string fileName)
1284
public
Project
LoadProject(string fileName, string toolsVersion)
1297
public
Project
LoadProject(string fileName, IDictionary<string, string> globalProperties, string toolsVersion)
1368
Project
project = _loadedProjects.GetMatchingProjectIfAny(fileName, globalProperties, effectiveToolsVersion);
1383
public
Project
LoadProject(XmlReader xmlReader)
1395
public
Project
LoadProject(XmlReader xmlReader, string toolsVersion)
1408
public
Project
LoadProject(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion)
1496
public void UnloadProject(
Project
project)
1546
Project
conflictingProject = GetLoadedProjects(false, null).FirstOrDefault(project => project.UsesProjectRootElement(projectRootElement));
1564
foreach (
Project
project in _loadedProjects)
1609
var projects = new List<
Project
>(_loadedProjects);
1610
foreach (
Project
project in projects)
1636
var projects = new List<
Project
>(_loadedProjects);
1637
foreach (
Project
project in projects)
1683
/// Returns false if it was not unloaded because it was still in use by a loaded <see cref="
Project
"/>.
1698
Project
conflictingProject = GetLoadedProjects(false, null).FirstOrDefault(project => project.UsesProjectRootElement(projectRootElement));
1724
internal void OnAfterRenameLoadedProject(string oldFullPathIfAny,
Project
project)
1763
internal void AfterUpdateLoadedProjectGlobalProperties(
Project
project)
1991
private class LoadedProjectCollection : IEnumerable<
Project
>
2006
private Dictionary<string, List<
Project
>> _loadedProjects = new Dictionary<string, List<
Project
>>(StringComparer.OrdinalIgnoreCase);
2030
public IEnumerator<
Project
> GetEnumerator()
2034
var projects = new List<
Project
>();
2036
foreach (List<
Project
> projectList in _loadedProjects.Values)
2038
foreach (
Project
project in projectList)
2060
internal IList<
Project
> GetMatchingProjectsIfAny(string fullPath)
2064
_loadedProjects.TryGetValue(fullPath, out List<
Project
> candidates);
2066
return candidates ?? (IList<
Project
>)Array.Empty<
Project
>();
2075
internal
Project
GetMatchingProjectIfAny(string fullPath, IDictionary<string, string> globalProperties, string toolsVersion)
2079
if (_loadedProjects.TryGetValue(fullPath, out List<
Project
> candidates))
2081
foreach (
Project
candidate in candidates)
2098
internal void AddProject(
Project
project)
2102
if (!_loadedProjects.TryGetValue(project.FullPath, out List<
Project
> projectList))
2104
projectList = new List<
Project
>();
2108
foreach (
Project
existing in projectList)
2125
internal bool RemoveProject(
Project
project)
2134
internal bool RemoveProject(string projectFullPath,
Project
project)
2138
if (!_loadedProjects.TryGetValue(projectFullPath, out List<
Project
> projectList))
2166
_loadedProjects = new Dictionary<string, List<
Project
>>(StringComparer.OrdinalIgnoreCase);
2175
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 (3)
228
Project
project,
333
Project
project,
2786
/// The patterns match what <see cref="
Project
.GetAllGlobs()"/> returns.
Evaluation\GlobResultBuilder.cs (1)
23
/// This logic is shared between <see cref="
Project
.GetAllGlobs()"/> (which runs after evaluation over the
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)
118
internal virtual void OnProjectDirtied(
Project
sender, ProjectChangedEventArgs e)
Evaluation\SimpleProjectRootElementCache.cs (1)
135
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 (12)
AbstractBuildHost.cs (1)
209
private int AddProjectFileTarget(Build.Evaluation.
Project
? project, string? physicalFilePath, string languageName, DiagnosticLog log)
Build\ProjectBuildManager.cs (8)
120
public async Task<(MSB.Evaluation.
Project
? project, DiagnosticLog log)> LoadProjectAsync(
153
private (MSB.Evaluation.
Project
? project, DiagnosticLog log) LoadProjectCore(
173
var
project = new MSB.Evaluation.Project(
189
public (MSB.Evaluation.
Project
? project, DiagnosticLog log) LoadProject(string path, Stream readStream, IDictionary<string, string>? globalProperties)
264
MSB.Evaluation.
Project
project, DiagnosticLog log, CancellationToken cancellationToken)
310
MSB.Evaluation.
Project
project, DiagnosticLog log, CancellationToken cancellationToken)
319
MSB.Evaluation.
Project
project, string[] requiredTargets, string[] optionalTargets, DiagnosticLog log, CancellationToken cancellationToken)
422
public void UnloadProject(MSB.Evaluation.
Project
project)
MSBuild\ProjectFile\ProjectFile.cs (1)
18
MSB.Evaluation.
Project
? project,
MSBuild\ProjectFile\ProjectInstanceReader.cs (2)
17
public readonly MSB.Evaluation.
Project
? Project;
32
MSB.Evaluation.
Project
? project,
Microsoft.DotNet.Arcade.Sdk (2)
src\InstallDotNetCore.cs (2)
94
var
proj =
Project
.FromFile(VersionsPropsPath, new Build.Definition.ProjectOptions() { ProjectCollection = new ProjectCollection() });
MSBuild (2)
XMake.cs (2)
1750
Project
project = projectCollection.LoadProject(projectFile, globalProperties, toolsVersion);
2030
Project
project = projectCollection.LoadProject(projectFile, globalProperties, toolsVersion);
NuGet.CommandLine.XPlat (18)
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (1)
101
Project
project = _msbuildUtility.GetProject(projectPath).Project;
Commands\Why\WhyCommandRunner.cs (1)
111
Project
project = _msbuildUtility.GetProject(projectPath).Project;
Utility\MSBuildAPIUtility.cs (16)
87
private static bool IsCentralPackageManagementEnabled(
Project
project)
204
var
project = GetProject(packageReferenceArgs.ProjectPath).Project;
397
static ProjectItemGroupElement GetOrCreateItemGroup(string targetFrameworkAlias,
Project
project)
412
private void AddPackageVersionIntoItemGroupCPM(
Project
project, LibraryDependency libraryDependency)
431
internal static ProjectRootElement GetDirectoryBuildPropsRootElement(
Project
project)
476
internal void AddPackageReferenceIntoItemGroupCPM(
Project
project, ProjectItemGroupElement itemGroup,
510
internal static IEnumerable<ProjectItemGroupElement> GetItemGroups(
Project
project)
544
internal static ProjectItemGroupElement CreateItemGroup(
Project
project, string condition)
709
internal static bool IsPackageReferenceProject(
Project
project)
729
Project
project, IEnumerable<string> userInputFrameworks, LockFile assetsFile, bool transitive)
894
private static IEnumerable<ProjectItem> GetPackageReferences(
Project
project, string packageId)
917
private static IEnumerable<ProjectItem> GetPackageReferences(
Project
project, LibraryDependency libraryDependency)
930
private static IEnumerable<InstalledPackageReference> GetPackageReferencesFromTargets(
Project
project, string framework)
999
var
projectPerFramework = project.WithGlobalProperties(globalProperties).Project;
1045
private static IEnumerable<string> GetProjectFrameworks(
Project
project)
1094
public required
Project
Project { get; init; }