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)
1300
project ??= new
Project
(fileName, globalProperties, effectiveToolsVersion, this);
1339
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 };
1124
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)
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)
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 (194)
BackEnd\BuildManager\BuildManager.cs (2)
949
public ProjectInstance GetProjectInstanceForBuild(
Project
project)
1804
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)
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; }
3407
ErrorUtilities.VerifyThrowInvalidOperation(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.Location, $"{nameof(
Project
)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
4036
internal Data(
Project
project, PropertyDictionary<ProjectPropertyInstance> globalProperties, string explicitToolsVersion, string explicitSubToolsetVersion, bool CanEvaluateElementsWithFalseConditions)
4237
internal
Project
Project { get; }
4672
/// Data class representing a result from <see cref="
Project
.GetAllGlobs()"/> and its overloads.
4769
/// 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
446
/// Raised when a <see cref="
Project
"/> contained by this instance is directly changed.
625
public ICollection<
Project
> LoadedProjects => GetLoadedProjects(true, null);
865
/// Whether <see cref="
Project
.MarkDirty()">MarkDirty()</see> is temporarily disabled on
1165
public ICollection<
Project
> GetLoadedProjects(string fullPath)
1175
internal ICollection<
Project
> GetLoadedProjects(bool includeExternal, string fullPath = null)
1177
List<
Project
> loaded;
1180
loaded = fullPath == null ? new List<
Project
>(_loadedProjects) : new List<
Project
>(_loadedProjects.GetMatchingProjectsIfAny(fullPath));
1201
public
Project
LoadProject(string fileName)
1213
public
Project
LoadProject(string fileName, string toolsVersion)
1226
public
Project
LoadProject(string fileName, IDictionary<string, string> globalProperties, string toolsVersion)
1297
Project
project = _loadedProjects.GetMatchingProjectIfAny(fileName, globalProperties, effectiveToolsVersion);
1312
public
Project
LoadProject(XmlReader xmlReader)
1324
public
Project
LoadProject(XmlReader xmlReader, string toolsVersion)
1337
public
Project
LoadProject(XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion)
1424
public void UnloadProject(
Project
project)
1474
Project
conflictingProject = GetLoadedProjects(false, null).FirstOrDefault(project => project.UsesProjectRootElement(projectRootElement));
1492
foreach (
Project
project in _loadedProjects)
1537
var projects = new List<
Project
>(_loadedProjects);
1538
foreach (
Project
project in projects)
1564
var projects = new List<
Project
>(_loadedProjects);
1565
foreach (
Project
project in projects)
1611
/// Returns false if it was not unloaded because it was still in use by a loaded <see cref="
Project
"/>.
1626
Project
conflictingProject = GetLoadedProjects(false, null).FirstOrDefault(project => project.UsesProjectRootElement(projectRootElement));
1652
internal void OnAfterRenameLoadedProject(string oldFullPathIfAny,
Project
project)
1691
internal void AfterUpdateLoadedProjectGlobalProperties(
Project
project)
1919
private class LoadedProjectCollection : IEnumerable<
Project
>
1934
private Dictionary<string, List<
Project
>> _loadedProjects = new Dictionary<string, List<
Project
>>(StringComparer.OrdinalIgnoreCase);
1958
public IEnumerator<
Project
> GetEnumerator()
1962
var projects = new List<
Project
>();
1964
foreach (List<
Project
> projectList in _loadedProjects.Values)
1966
foreach (
Project
project in projectList)
1988
internal IList<
Project
> GetMatchingProjectsIfAny(string fullPath)
1992
_loadedProjects.TryGetValue(fullPath, out List<
Project
> candidates);
1994
return candidates ?? (IList<
Project
>)Array.Empty<
Project
>();
2003
internal
Project
GetMatchingProjectIfAny(string fullPath, IDictionary<string, string> globalProperties, string toolsVersion)
2007
if (_loadedProjects.TryGetValue(fullPath, out List<
Project
> candidates))
2009
foreach (
Project
candidate in candidates)
2026
internal void AddProject(
Project
project)
2030
if (!_loadedProjects.TryGetValue(project.FullPath, out List<
Project
> projectList))
2032
projectList = new List<
Project
>();
2036
foreach (
Project
existing in projectList)
2053
internal bool RemoveProject(
Project
project)
2062
internal bool RemoveProject(string projectFullPath,
Project
project)
2066
if (!_loadedProjects.TryGetValue(projectFullPath, out List<
Project
> projectList))
2094
_loadedProjects = new Dictionary<string, List<
Project
>>(StringComparer.OrdinalIgnoreCase);
2103
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)
35
internal ResolvedImport(
Project
project, ProjectImportElement importingElement, ProjectRootElement importedProject, int versionEvaluated, SdkResult sdkResult)
Evaluation\Evaluator.cs (2)
210
Project
project,
312
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)
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)
954
/// <param name="project">The immutable <see cref="
Project
"/> on which the ProjectInstance is based.</param>
956
public static ProjectInstance FromImmutableProjectSource(
Project
project, ProjectInstanceSettings settings)
962
private static IRetrievableEntryHashSet<ProjectItemDefinitionInstance> GetImmutableItemDefinitionsHashSetFromImmutableProject(
Project
linkedProject)
979
Project
linkedProject,
1001
Project
linkedProject,
1050
private static PropertyDictionary<ProjectPropertyInstance> GetImmutablePropertyDictionaryFromImmutableProject(
Project
linkedProject)
1208
/// See <see cref="
Project
.LastEvaluationId"/>.
3486
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 (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 (5)
JsonOutputFormatter.cs (1)
82
internal void AddItemsInJsonFormat(string[] itemNames,
Project
project)
XMake.cs (4)
980
Project
project = collection.LoadProject(projectFile, globalProperties, toolsVersion);
1276
private static ExitType OutputPropertiesAfterEvaluation(string[] getProperty, string[] getItem,
Project
project, TextWriter outputStream)
1626
Project
project = projectCollection.LoadProject(projectFile, globalProperties, toolsVersion);
1906
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; }