71 instantiations of ProjectInstance
Microsoft.Build (15)
BackEnd\BuildManager\BuildManager.cs (1)
2174
return new
ProjectInstance
(
BackEnd\Shared\BuildRequestConfiguration.cs (1)
508
return new
ProjectInstance
(
Construction\Solution\SolutionProjectGenerator.cs (2)
1037
var traversalInstance = new
ProjectInstance
(
1274
ProjectInstance metaprojectInstance = new
ProjectInstance
(EscapingUtilities.UnescapeAll(GetMetaprojectName(project)), traversalProject, GetMetaprojectGlobalProperties(traversalProject));
Definition\Project.cs (1)
3727
return new
ProjectInstance
(_data, DirectoryPath, FullPath, ProjectCollection.HostServices, ProjectCollection.EnvironmentProperties, settings);
Graph\ProjectGraph.cs (1)
855
return new
ProjectInstance
(
Instance\ProjectInstance.cs (9)
199
/// of another ProjectInstance. <seealso cref="
ProjectInstance
(ProjectInstance, bool, RequestedProjectState)"/>
921
return new
ProjectInstance
(
940
return new
ProjectInstance
(
960
return new
ProjectInstance
(project, fastItemLookupNeeded);
1310
/// of another ProjectInstance. <seealso cref="
ProjectInstance
(ProjectInstance, bool, RequestedProjectState)"/>
2173
return new
ProjectInstance
(this, true, filter);
2189
return new
ProjectInstance
(this, isImmutable);
2778
return new
ProjectInstance
(translator);
3120
ProjectInstance instance =
new
(projectRootElement, globalProperties, toolsVersion, buildParameters, loggingService, projectBuildEventContext, sdkResolverService, submissionId);
Microsoft.Build.Engine.OM.UnitTests (10)
Definition\Project_Tests.cs (4)
680
ProjectInstance projectInstance = new
ProjectInstance
(xml);
718
ProjectInstance projectInstance = new
ProjectInstance
(xml);
754
ProjectInstance projectInstance = new
ProjectInstance
(xml);
792
ProjectInstance projectInstance = new
ProjectInstance
(xml);
Instance\ProjectInstance_Tests.cs (5)
344
ProjectInstance instance = new
ProjectInstance
(ProjectRootElement.Create());
356
ProjectInstance instance = new
ProjectInstance
(ProjectRootElement.Create());
368
ProjectInstance instance = new
ProjectInstance
(ProjectRootElement.Create());
381
ProjectInstance instance = new
ProjectInstance
(xml);
468
var projBInstance = new
ProjectInstance
(projBEval, ProjectInstanceSettings.ImmutableWithFastItemLookup);
Instance\ProjectItemInstance_Tests.cs (1)
1166
ProjectInstance project = new
ProjectInstance
(xml);
Microsoft.Build.Engine.UnitTests (46)
BackEnd\BuildManager_Tests.cs (1)
3703
return new
ProjectInstance
(rootProject);
BackEnd\IntrinsicTask_Tests.cs (1)
3541
ProjectInstance instance = new
ProjectInstance
(xml);
BackEnd\ResultsCache_Tests.cs (1)
311
resultForRequestWithSubsetFlag1.ProjectStateAfterBuild = new
ProjectInstance
(ProjectRootElement.Create(xmlReader)).FilteredCopy(requestedProjectState1);
BackEnd\TaskHost_Tests.cs (1)
83
configuration.Project = new
ProjectInstance
(ProjectRootElement.Create());
BackEnd\TaskHostCallback_Tests.cs (7)
53
ProjectInstance projectInstance =
new
(project.ProjectFile);
128
ProjectInstance projectInstance =
new
(project.ProjectFile);
159
ProjectInstance projectInstance =
new
(project.ProjectFile);
349
ProjectInstance projectInstance =
new
(project.ProjectFile);
388
ProjectInstance projectInstance =
new
(project.ProjectFile);
434
ProjectInstance projectInstance =
new
(project.ProjectFile);
474
ProjectInstance projectInstance =
new
(project.ProjectFile);
BackEnd\TaskHostFactory_Tests.cs (4)
73
ProjectInstance projectInstance =
new
(project.Path);
178
ProjectInstance projectInstance =
new
(project.Path);
331
ProjectInstance projectInstance =
new
(project.ProjectFile);
390
ProjectInstance projectInstance =
new
(project.Path);
Definition\ToolsVersion_Tests.cs (4)
792
ProjectInstance pi = new
ProjectInstance
(projectFromString.Project.Xml, null /* no global properties */, null /* don't explicitly set the toolsversion */, p);
826
ProjectInstance pi = new
ProjectInstance
(projectFromString.Project.Xml, null /* no global properties */, null /* don't explicitly set the toolsversion */, p);
862
ProjectInstance pi = new
ProjectInstance
(projectFromString.Project.Xml, null /* no global properties */, null /* don't explicitly set the toolsversion */, p);
902
ProjectInstance pi = new
ProjectInstance
(projectFromString.Project.Xml, null /* no global properties */, null /* don't explicitly set the toolsversion */, p);
Evaluation\Evaluator_Tests.cs (1)
484
ProjectInstance project = new
ProjectInstance
(subdirProjPath);
Evaluation\Expander_Tests.cs (9)
4909
ProjectInstance projectInstance = new
ProjectInstance
(projectFile.Path);
4953
ProjectInstance projectInstance = new
ProjectInstance
(projectFile.Path);
4982
ProjectInstance projectInstance = new
ProjectInstance
(projectFile.Path);
5029
ProjectInstance projectInstance = new
ProjectInstance
(projectFile.Path);
5070
ProjectInstance projectInstance = new
ProjectInstance
(projectFile.Path);
5104
ProjectInstance projectInstance = new
ProjectInstance
(projectFile.Path);
5151
new
ProjectInstance
(projectFile.Path);
5192
new
ProjectInstance
(projectFile.Path);
5224
new
ProjectInstance
(projectFile.Path);
ExpressionTree_Tests.cs (6)
182
ProjectInstance parentProject = new
ProjectInstance
(ProjectRootElement.Create());
212
ProjectInstance parentProject = new
ProjectInstance
(ProjectRootElement.Create());
247
ProjectInstance parentProject = new
ProjectInstance
(ProjectRootElement.Create());
279
ProjectInstance parentProject = new
ProjectInstance
(ProjectRootElement.Create());
296
ProjectInstance parentProject = new
ProjectInstance
(ProjectRootElement.Create());
325
ProjectInstance parentProject = new
ProjectInstance
(ProjectRootElement.Create());
ExpressionTreeExpression_Tests.cs (1)
373
ProjectInstance parentProject = new
ProjectInstance
(xml);
Instance\ProjectInstance_Internal_Tests.cs (10)
287
var projectInstance = new
ProjectInstance
(
424
ProjectInstance p = new
ProjectInstance
(xml, globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, "ABCDEF", collection);
690
var original = new
ProjectInstance
(rootElement);
707
(f, xml, c) => new
ProjectInstance
(f, null, null, c)
725
(f, xml, c) => new
ProjectInstance
(f, null, null, c).DeepCopy()
731
(f, xml, c) => new
ProjectInstance
(xml, null, null, c)
745
var pi = new
ProjectInstance
(f, null, null, c);
783
ProjectInstance projectInstance = new
ProjectInstance
(rootElement);
819
ProjectInstance projectInstance = new
ProjectInstance
(rootElement);
864
? new
ProjectInstance
(rootElement, globalProperties: null, toolsVersion: null, buildParameters, projectCollection.LoggingService, buildEventContext, sdkResolverService: null, 0)
716 references to ProjectInstance
Microsoft.Build (171)
BackEnd\BuildManager\BuildManager.cs (6)
191
private readonly Dictionary<
ProjectInstance
, string> _unnamedProjectInstanceToNames;
306
_unnamedProjectInstanceToNames = new Dictionary<
ProjectInstance
, string>();
926
public
ProjectInstance
GetProjectInstanceForBuild(Project project)
1507
ProjectInstance
? projectInstance = submission.BuildRequestData.ProjectInstance;
1738
var instances =
ProjectInstance
.LoadSolutionForBuild(
1783
ProjectInstance
newInstance = project.CreateProjectInstance();
BackEnd\BuildManager\BuildRequestData.cs (6)
22
public BuildRequestData(
ProjectInstance
projectInstance, string[] targetsToBuild)
33
public BuildRequestData(
ProjectInstance
projectInstance, string[] targetsToBuild, HostServices hostServices)
45
public BuildRequestData(
ProjectInstance
projectInstance, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags)
58
public BuildRequestData(
ProjectInstance
projectInstance, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer)
87
public BuildRequestData(
ProjectInstance
projectInstance, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer, RequestedProjectState requestedProjectState)
167
public
ProjectInstance
? ProjectInstance
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
173
private IEnumerable<ProjectCacheDescriptor> GetProjectCacheDescriptors(
ProjectInstance
projectInstance)
BackEnd\Components\RequestBuilder\IntrinsicTask.cs (3)
26
protected IntrinsicTask(TargetLoggingContext loggingContext,
ProjectInstance
projectInstance, bool logTaskInputs)
45
internal
ProjectInstance
Project
68
internal static IntrinsicTask InstantiateTask(ProjectTargetInstanceChild taskInstance, TargetLoggingContext loggingContext,
ProjectInstance
projectInstance, bool logTaskInputs)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
42
public ItemGroupIntrinsicTask(ProjectItemGroupTaskInstance taskInstance, TargetLoggingContext loggingContext,
ProjectInstance
projectInstance, bool logTaskInputs)
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
37
public PropertyGroupIntrinsicTask(ProjectPropertyGroupTaskInstance taskInstance, TargetLoggingContext loggingContext,
ProjectInstance
projectInstance, bool logTaskInputs)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
1488
ProjectInstance
project = _requestEntry?.RequestConfiguration?.Project;
1528
ProjectInstance
project = _requestEntry?.RequestConfiguration?.Project;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
86
private
ProjectInstance
_projectInstance;
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
56
internal TargetUpToDateChecker(
ProjectInstance
project, ProjectTargetInstance targetToAnalyze, ILoggingService loggingServices, BuildEventContext buildEventContext)
1237
private
ProjectInstance
_project;
BackEnd\Shared\BuildRequestConfiguration.cs (8)
89
private
ProjectInstance
_project;
94
private
ProjectInstance
_transferredState;
218
internal BuildRequestConfiguration(int configId,
ProjectInstance
instance)
398
public
ProjectInstance
Project
433
private void SetProjectBasedState(
ProjectInstance
project)
528
private void InitializeProject(BuildParameters buildParameters, Func<
ProjectInstance
> loadProjectFromFile)
957
translator.Translate(ref _transferredState,
ProjectInstance
.FactoryForDeserialization);
1000
internal void ApplyTransferredState(
ProjectInstance
instance)
BackEnd\Shared\BuildResult.cs (11)
131
/// <see cref="
ProjectInstance
"/> state after the build. This is only provided if <see cref="BuildRequest.BuildRequestDataFlags"/>
135
/// be used to retrieve <see cref="
ProjectInstance
.Properties"/>, <see cref="
ProjectInstance
.GlobalProperties"/> and
136
/// <see cref="
ProjectInstance
.Items"/> from it. No other operation is guaranteed to be supported.
138
private
ProjectInstance
? _projectStateAfterBuild;
415
/// <see cref="
ProjectInstance
"/> state after the build. In general, it may be a non buildable-dummy object, and should only
416
/// be used to retrieve <see cref="
ProjectInstance
.Properties"/>, <see cref="
ProjectInstance
.GlobalProperties"/> and
417
/// <see cref="
ProjectInstance
.Items"/> from it. Any other operation is not guaranteed to be supported.
419
public
ProjectInstance
? ProjectStateAfterBuild
652
translator.Translate(ref _projectStateAfterBuild,
ProjectInstance
.FactoryForDeserialization);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
87
private
ProjectInstance
_projectInstance;
218
public
ProjectInstance
ProjectInstance => _projectInstance;
265
ProjectInstance
projectInstance,
Construction\Solution\SolutionProjectGenerator.cs (35)
209
internal static
ProjectInstance
[] Generate(
739
private
ProjectInstance
[] Generate()
766
private
ProjectInstance
[] CreateSolutionProject(string wrapperProjectToolsVersion, bool explicitToolsVersionSpecified)
794
var projectInstances = new List<
ProjectInstance
>(projectsInOrder.Count + 1);
797
ProjectInstance
traversalInstance = CreateTraversalInstance(wrapperProjectToolsVersion, explicitToolsVersionSpecified, projectsInOrder);
826
foreach (
ProjectInstance
instance in projectInstances)
837
private void EvaluateAndAddProjects(List<ProjectInSolution> projectsInOrder, List<
ProjectInstance
> projectInstances,
ProjectInstance
traversalInstance, string selectedSolutionConfiguration)
872
ProjectInstance
metaproject = CreateMetaproject(traversalInstance, project, projectConfiguration);
887
private void AddStandardTraversalTargets(
ProjectInstance
traversalInstance, List<ProjectInSolution> projectsInOrder)
902
private
ProjectInstance
CreateTraversalInstance(string wrapperProjectToolsVersion, bool explicitToolsVersionSpecified, List<ProjectInSolution> projectsInOrder)
1037
var
traversalInstance = new ProjectInstance(
1115
private void AddProjectReference(
ProjectInstance
traversalProject,
ProjectInstance
projectInstance, ProjectInSolution projectToAdd, ProjectConfigurationInSolution projectConfiguration, bool direct)
1148
private static string GetToolsVersionMetadataForDirectMSBuildTask(
ProjectInstance
traversalProject)
1165
private static string GetPropertiesMetadataForProjectReference(
ProjectInstance
traversalProject, string configurationAndPlatformProperties)
1204
private bool CanBuildDirectly(
ProjectInstance
traversalProject, ProjectInSolution projectToAdd, ProjectConfigurationInSolution projectConfiguration)
1271
private
ProjectInstance
CreateMetaproject(
ProjectInstance
traversalProject, ProjectInSolution project, ProjectConfigurationInSolution projectConfiguration)
1274
ProjectInstance
metaprojectInstance = new ProjectInstance(EscapingUtilities.UnescapeAll(GetMetaprojectName(project)), traversalProject, GetMetaprojectGlobalProperties(traversalProject));
1376
private void AddMetaprojectReferenceItems(
ProjectInstance
traversalProject,
ProjectInstance
metaprojectInstance, ProjectInSolution project)
1404
private static void AddMetaprojectTargetForManagedProject(
ProjectInstance
traversalProject,
ProjectInstance
metaprojectInstance, ProjectInSolution project, ProjectConfigurationInSolution projectConfiguration, string targetName, string outputItem)
1423
private static void AddProjectBuildTask(
ProjectInstance
traversalProject, ProjectConfigurationInSolution projectConfiguration, ProjectTargetInstance target, string targetToBuild, string sourceItems, string condition, string outputItem)
1922
private void AddMetaprojectTargetForUnknownProjectType(
ProjectInstance
traversalProject,
ProjectInstance
metaprojectInstance, ProjectInSolution project, string targetName, string unknownProjectTypeErrorMessage)
1992
private void AddValidateProjectsTarget(
ProjectInstance
traversalProject, List<ProjectInSolution> projects)
2034
private static void AddTraversalReferencesTarget(
ProjectInstance
traversalProject, string targetName, string outputItem, bool batchBuildTargets)
2086
private void AddTraversalTargetForProject(
ProjectInstance
traversalProject, ProjectInSolution project, ProjectConfigurationInSolution projectConfiguration, string targetToBuild, string outputItem, bool canBuildDirectly)
2131
private IDictionary<string, string> GetMetaprojectGlobalProperties(
ProjectInstance
traversalProject)
2404
private void AddInitialTargets(
ProjectInstance
traversalProject, List<ProjectInSolution> projects)
2415
private void AddValidateSolutionConfigurationTarget(
ProjectInstance
traversalProject)
2450
private static void AddValidateToolsVersionsTarget(
ProjectInstance
traversalProject)
2463
private static void AddGetSolutionConfigurationContentsTarget(
ProjectInstance
traversalProject)
Definition\Project.cs (6)
1367
public
ProjectInstance
CreateProjectInstance()
1381
public
ProjectInstance
CreateProjectInstance(ProjectInstanceSettings settings)
1392
public
ProjectInstance
CreateProjectInstance(ProjectInstanceSettings settings, EvaluationContext evaluationContext)
3293
public override
ProjectInstance
CreateProjectInstance(ProjectInstanceSettings settings, EvaluationContext evaluationContext)
3361
ProjectInstance
instance = CreateProjectInstance(LoggingService, ProjectInstanceSettings.None, evaluationContext);
3720
private
ProjectInstance
CreateProjectInstance(
Graph\GraphBuilder.cs (4)
54
private ConcurrentDictionary<ConfigurationMetadata, Lazy<
ProjectInstance
>> _platformNegotiationInstancesCache = new();
539
ProjectInstance
projectInstance;
642
private
ProjectInstance
GetInstanceForPlatformNegotiationWithCaching(
649
new Lazy<
ProjectInstance
>(() => _projectInstanceFactory(projectPath, globalProperties, projectCollection))).Value;
Graph\ProjectGraph.cs (9)
33
/// A callback used for constructing a <see cref="
ProjectInstance
" /> for a specific
39
/// <returns>A <see cref="
ProjectInstance
" /> instance. This value must not be null.</returns>
55
public delegate
ProjectInstance
ProjectInstanceFactoryFunc(
177
/// A delegate used for constructing a <see cref="
ProjectInstance
" />, called for each
318
/// A delegate used for constructing a <see cref="
ProjectInstance
" />, called for each
355
/// A delegate used for constructing a <see cref="
ProjectInstance
" />, called for each
396
/// A delegate used for constructing a <see cref="
ProjectInstance
" />, called for each
835
internal
ProjectInstance
DefaultProjectInstanceFactory(
849
internal static
ProjectInstance
StaticProjectInstanceFactory(
Graph\ProjectGraphNode.cs (2)
26
internal ProjectGraphNode(
ProjectInstance
projectInstance)
47
public
ProjectInstance
ProjectInstance { get; }
Graph\ProjectInterpretation.cs (9)
82
ProjectInstance
requesterInstance = projectGraphNode.ProjectInstance;
180
var
projectInstance = projectInstanceFactory(
211
internal static string GetInnerBuildPropertyValue(
ProjectInstance
project)
216
internal static string GetInnerBuildPropertyName(
ProjectInstance
project)
221
internal static string GetInnerBuildPropertyValues(
ProjectInstance
project)
226
internal static ProjectType GetProjectType(
ProjectInstance
project)
283
private static IEnumerable<ProjectItemInstance> ConstructInnerBuildReferences(
ProjectInstance
outerBuild)
492
public static TargetsToPropagate FromProjectAndEntryTargets(
ProjectInstance
project, ImmutableList<string> entryTargets)
554
ProjectInstance
projectInstance = projectGraphNode.ProjectInstance;
Instance\ProjectInstance.cs (29)
199
/// of another ProjectInstance. <seealso cref="ProjectInstance(
ProjectInstance
, bool, RequestedProjectState)"/>
423
/// The resulting <see cref="
ProjectInstance
"/> object wraps the <see cref="Project"/>
563
internal ProjectInstance(string projectFile,
ProjectInstance
projectToInheritFrom, IDictionary<string, string> globalProperties)
626
/// Initializes a new instance of the <see cref="
ProjectInstance
"/> class directly.
739
private ProjectInstance(
ProjectInstance
that, bool isImmutable, RequestedProjectState filter = null)
919
public static
ProjectInstance
FromFile(string file, ProjectOptions options)
938
public static
ProjectInstance
FromProjectRootElement(ProjectRootElement rootElement, ProjectOptions options)
957
public static
ProjectInstance
FromImmutableProjectSource(Project project, ProjectInstanceSettings settings)
981
ProjectInstance
owningProjectInstance)
1003
ProjectInstance
owningProjectInstance,
1310
/// of another ProjectInstance. <seealso cref="ProjectInstance(
ProjectInstance
, bool, RequestedProjectState)"/>
1390
/// Adds an Environment Variable that was resolved by an <see cref="SdkResolver"/> to the set of properties tracked by this <see cref="
ProjectInstance
"/>.
2156
public
ProjectInstance
DeepCopy()
2171
public
ProjectInstance
FilteredCopy(RequestedProjectState filter)
2181
public
ProjectInstance
DeepCopy(bool isImmutable)
2438
/// from the <see cref="
ProjectInstance
"/> provided.
2440
/// <param name="projectState"><see cref="
ProjectInstance
"/> with the state to use.</param>
2441
public void UpdateStateFrom(
ProjectInstance
projectState)
2458
ErrorUtilities.VerifyThrow(TaskRegistry != null, $"{nameof(TaskRegistry)} Cannot be null after {nameof(
ProjectInstance
)} object creation.");
2638
internal static
ProjectInstance
[] LoadSolutionForBuild(
2656
ProjectInstance
[] projectInstances = null;
2702
private static
ProjectInstance
[] CalculateToolsVersionAndGenerateSolutionWrapper(
2728
ProjectInstance
[] projectInstances = null;
2776
internal static
ProjectInstance
FactoryForDeserialization(ITranslator translator)
2993
private static
ProjectInstance
[] GenerateSolutionWrapper(
3019
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(sp, globalProperties, toolsVersion, projectBuildEventContext, loggingService, targetNames, sdkResolverService, submissionId);
3046
private static
ProjectInstance
[] GenerateSolutionWrapperUsingOldOM(
3120
ProjectInstance
instance = new(projectRootElement, globalProperties, toolsVersion, buildParameters, loggingService, projectBuildEventContext, sdkResolverService, submissionId);
3502
ProjectInstance
projectInstance,
Instance\ProjectItemInstance.cs (30)
49
private
ProjectInstance
_project;
70
internal ProjectItemInstance(
ProjectInstance
project, string itemType, string includeEscaped, string definingFileEscaped)
82
internal ProjectItemInstance(
ProjectInstance
project, string itemType, string includeEscaped, string includeBeforeWildcardExpansionEscaped, string definingFileEscaped)
101
ProjectInstance
project,
124
internal ProjectItemInstance(
ProjectInstance
project, string itemType, string includeEscaped, IEnumerable<KeyValuePair<string, string>> directMetadata, string definingFileEscaped)
148
private ProjectItemInstance(ProjectItemInstance that,
ProjectInstance
newProject)
158
private ProjectItemInstance(
ProjectInstance
projectInstance)
169
public
ProjectInstance
Project
638
internal static ProjectItemInstance FactoryForDeserialization(ITranslator translator,
ProjectInstance
projectInstance)
696
internal ProjectItemInstance DeepClone(
ProjectInstance
newProject)
728
ProjectInstance
projectToUse,
933
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
959
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
1056
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
1154
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
1173
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
1468
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
1479
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
1490
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
1536
ProjectInstance
.VerifyThrowNotImmutable(destinationAsTaskItem._isImmutable);
1851
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
1972
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
1989
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
2010
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
2029
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
2040
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
2055
ProjectInstance
.VerifyThrowNotImmutable(_isImmutable);
2217
private
ProjectInstance
_project;
2224
internal ProjectItemInstanceFactory(
ProjectInstance
project)
2232
internal ProjectItemInstanceFactory(
ProjectInstance
project, string itemType)
Instance\ProjectPropertyInstance.cs (1)
76
ProjectInstance
.VerifyThrowNotImmutable(IsImmutable);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
234
public abstract
ProjectInstance
CreateProjectInstance(ProjectInstanceSettings settings, EvaluationContext evaluationContext);
Microsoft.Build.Engine.OM.UnitTests (91)
Definition\DefinitionEditing_Tests.cs (1)
1829
ProjectInstance
instance = project.CreateProjectInstance();
Definition\Project_Tests.cs (7)
680
ProjectInstance
projectInstance = new ProjectInstance(xml);
718
ProjectInstance
projectInstance = new ProjectInstance(xml);
754
ProjectInstance
projectInstance = new ProjectInstance(xml);
792
ProjectInstance
projectInstance = new ProjectInstance(xml);
1764
ProjectInstance
projectInstance = project.CreateProjectInstance();
3866
var
projectInstance = project.CreateProjectInstance();
3878
var
newProjectInstance = project.CreateProjectInstance();
Definition\ProjectItem_Tests.cs (3)
952
Should.Throw<InvalidProjectFileException>(() => {
ProjectInstance
.FromFile(testProjectFile, new ProjectOptions()); });
963
ProjectInstance
.FromFile(testProjectFile, options);
3756
var
projectInstance = buildManager.GetProjectInstanceForBuild(project);
Definition\ProjectItemDefinition_Tests.cs (1)
453
ProjectInstance
instance = project.CreateProjectInstance();
Instance\ProjectInstance_Tests.cs (63)
39
ProjectInstance
i = p.CreateProjectInstance();
50
ProjectInstance
p = GetSampleProjectInstance();
62
ProjectInstance
p = GetSampleProjectInstance();
82
ProjectInstance
p = GetEmptyProjectInstance();
103
ProjectInstance
p = GetEmptyProjectInstance();
124
ProjectInstance
p = GetEmptyProjectInstance();
155
ProjectInstance
p = GetEmptyProjectInstance();
167
ProjectInstance
p = GetEmptyProjectInstance();
179
ProjectInstance
p = GetEmptyProjectInstance();
189
ProjectInstance
p = GetEmptyProjectInstance();
203
ProjectInstance
instance = p.CreateProjectInstance();
221
ProjectInstance
first = GetSampleProjectInstance();
222
ProjectInstance
second = first.DeepCopy();
233
ProjectInstance
first = GetSampleProjectInstance();
234
ProjectInstance
second = first.DeepCopy();
261
ProjectInstance
project = GetProjectInstance(content);
304
ProjectInstance
projectInstance = GetProjectInstance(content);
326
ProjectInstance
first = GetSampleProjectInstance();
327
ProjectInstance
second = first.DeepCopy();
344
ProjectInstance
instance = new ProjectInstance(ProjectRootElement.Create());
356
ProjectInstance
instance = new ProjectInstance(ProjectRootElement.Create());
368
ProjectInstance
instance = new ProjectInstance(ProjectRootElement.Create());
381
ProjectInstance
instance = new ProjectInstance(xml);
396
ProjectInstance
instance1 = new Project().CreateProjectInstance();
426
var
projBInstance = projBEval.CreateProjectInstance();
468
var
projBInstance = new ProjectInstance(projBEval, ProjectInstanceSettings.ImmutableWithFastItemLookup);
510
var
projBInstance = projBEval.CreateProjectInstance();
667
var
instance = GetSampleProjectInstance(true /* immutable */);
678
var
instance = GetSampleProjectInstance(true /* immutable */);
689
var
instance = GetSampleProjectInstance(true /* immutable */);
700
var
instance = GetSampleProjectInstance(true /* immutable */);
711
var
instance = GetSampleProjectInstance(true /* immutable */);
722
var
instance = GetSampleProjectInstance(true /* immutable */);
733
var
instance = GetSampleProjectInstance(true /* immutable */);
744
var
instance = GetSampleProjectInstance(true /* immutable */);
755
var
instance = GetSampleProjectInstance(true /* immutable */);
766
var
instance = GetSampleProjectInstance(true /* immutable */);
777
var
instance = GetSampleProjectInstance(true /* immutable */);
788
var
instance = GetSampleProjectInstance(true /* immutable */);
799
var
instance = GetSampleProjectInstance(true /* immutable */);
810
var
instance = GetSampleProjectInstance(true /* immutable */);
821
var
instance = GetSampleProjectInstance(true /* immutable */);
832
var
instance = GetSampleProjectInstance(true /* immutable */);
844
var
instance = GetSampleProjectInstance(true /* immutable */);
856
var
instance = GetSampleProjectInstance(true /* immutable */);
867
var
protoInstance = GetSampleProjectInstance(true /* immutable */);
868
var
instance = protoInstance.DeepCopy(false /* mutable */);
886
var
protoInstance = GetSampleProjectInstance(false /* mutable */);
887
var
instance = protoInstance.DeepCopy(true /* immutable */);
908
var
protoInstance = GetSampleProjectInstance(true /* immutable */);
909
var
instance = protoInstance.DeepCopy(/* inherit */);
933
var
protoInstance = GetSampleProjectInstance(true /* immutable */);
934
var
instance = protoInstance.DeepCopy(true /* immutable */);
955
var
protoInstance = GetSampleProjectInstance(false /* mutable */);
956
var
instance = protoInstance.DeepCopy(/* inherit */);
972
var
protoInstance = GetSampleProjectInstance(false /* mutable */);
973
var
instance = protoInstance.DeepCopy(false /* mutable */);
986
private static
ProjectInstance
GetSampleProjectInstance(bool isImmutable = false)
1015
ProjectInstance
p = GetProjectInstance(content, isImmutable);
1023
private static
ProjectInstance
GetProjectInstance(string content, bool immutable = false)
1030
ProjectInstance
instance = immutable ? project.CreateProjectInstance(ProjectInstanceSettings.Immutable) : project.CreateProjectInstance();
1038
private static
ProjectInstance
GetEmptyProjectInstance()
1042
ProjectInstance
instance = project.CreateProjectInstance();
Instance\ProjectItemInstance_Tests.cs (4)
246
ProjectInstance
projectInstance = project.CreateProjectInstance();
341
ProjectInstance
projectInstance = project.CreateProjectInstance();
1166
ProjectInstance
project = new ProjectInstance(xml);
1188
ProjectInstance
projectInstance = project.CreateProjectInstance();
Instance\ProjectMetadataInstance_Tests.cs (1)
35
ProjectInstance
projectInstance = project.CreateProjectInstance();
Instance\ProjectOnErrorInstance_Tests.cs (1)
46
ProjectInstance
instance = project.CreateProjectInstance();
Instance\ProjectPropertyInstance_Tests.cs (2)
93
var
snapshot = project.CreateProjectInstance(ProjectInstanceSettings.Immutable);
104
ProjectInstance
projectInstance = project.CreateProjectInstance();
Instance\ProjectTargetInstance_Tests.cs (4)
57
ProjectInstance
instance = project.CreateProjectInstance();
77
ProjectInstance
instance = project.CreateProjectInstance();
97
ProjectInstance
instance = project.CreateProjectInstance();
148
ProjectInstance
instance = project.CreateProjectInstance();
Instance\ProjectTaskInstance_Tests.cs (1)
76
ProjectInstance
instance = project.CreateProjectInstance();
Instance\ProjectTaskOutputItemInstance_Tests.cs (1)
49
ProjectInstance
instance = project.CreateProjectInstance();
Instance\ProjectTaskOutputPropertyInstance_Tests.cs (1)
49
ProjectInstance
instance = project.CreateProjectInstance();
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
185
public override
ProjectInstance
CreateProjectInstance(ProjectInstanceSettings settings, EvaluationContext evaluationContext) => throw new NotImplementedException();
Microsoft.Build.Engine.UnitTests (360)
BackEnd\BatchingEngine_Tests.cs (4)
28
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
126
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
163
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
225
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
BackEnd\BuildManager_Tests.cs (30)
310
ProjectInstance
instance = CreateProjectInstance(contents2, null, _projectCollection, true);
354
ProjectInstance
rootProject = GenerateDummyProjects(shutdownProjectDirectory, numberOfParallelProjectsToBuild, projectCollection);
1777
ProjectInstance
instance = _buildManager.GetProjectInstanceForBuild(project);
1807
ProjectInstance
instance = _buildManager.GetProjectInstanceForBuild(project);
1842
ProjectInstance
instance = _buildManager.GetProjectInstanceForBuild(project);
1899
ProjectInstance
instance = _buildManager.GetProjectInstanceForBuild(project);
1900
ProjectInstance
instance2 = _buildManager.GetProjectInstanceForBuild(project);
1927
ProjectInstance
instance = _buildManager.GetProjectInstanceForBuild(project);
1953
ProjectInstance
instance = _buildManager.GetProjectInstanceForBuild(project);
1985
ProjectInstance
instance = _buildManager.GetProjectInstanceForBuild(project);
1998
ProjectInstance
instance2 = _buildManager.GetProjectInstanceForBuild(project);
2035
ProjectInstance
projectInstance = CreateProjectInstance(contents1, null, _projectCollection, false);
2062
ProjectInstance
projectInstance2 = CreateProjectInstance(contents1, null, _projectCollection, false);
2266
ProjectInstance
instance = project.CreateProjectInstance();
2317
ProjectInstance
instance = project.CreateProjectInstance();
3140
ProjectInstance
pi = BuildManager.DefaultBuildManager.GetProjectInstanceForBuild(project1);
3151
ProjectInstance
pi = BuildManager.DefaultBuildManager.GetProjectInstanceForBuild(project2);
3219
ProjectInstance
pi = BuildManager.DefaultBuildManager.GetProjectInstanceForBuild(project2);
3231
ProjectInstance
pi = BuildManager.DefaultBuildManager.GetProjectInstanceForBuild(project1);
3306
ProjectInstance
pi = BuildManager.DefaultBuildManager.GetProjectInstanceForBuild(project2);
3318
ProjectInstance
pi = BuildManager.DefaultBuildManager.GetProjectInstanceForBuild(project1);
3409
ProjectInstance
instance = _buildManager.GetProjectInstanceForBuild(project);
3439
ProjectInstance
instance = _buildManager.GetProjectInstanceForBuild(project);
3470
ProjectInstance
instance = _buildManager.GetProjectInstanceForBuild(project);
3619
private
ProjectInstance
CreateProjectInstance(string contents, string toolsVersion, ProjectCollection projectCollection, bool deleteTempProject)
3661
private static
ProjectInstance
GenerateDummyProjects(string shutdownProjectDirectory, int parallelProjectCount, ProjectCollection projectCollection)
3750
var
mainInstance = mainProject.CreateProjectInstance(ProjectInstanceSettings.Immutable).DeepCopy(isImmutable: false);
3777
var
p2pInstance = p2pProject.CreateProjectInstance(ProjectInstanceSettings.Immutable).DeepCopy(isImmutable: false);
3902
ProjectInstance
instance = project.CreateProjectInstance(ProjectInstanceSettings.Immutable).DeepCopy(false);
4456
ProjectInstance
instance = _buildManager.GetProjectInstanceForBuild(project);
BackEnd\BuildRequestConfiguration_Tests.cs (8)
187
ProjectInstance
projectInstance = project.CreateProjectInstance();
285
ProjectInstance
instance = project.CreateProjectInstance();
362
ProjectInstance
instance = project.CreateProjectInstance();
464
ProjectInstance
instance = project.CreateProjectInstance();
567
var
projectInstance = project.CreateProjectInstance();
596
ProjectInstance
instance = project.CreateProjectInstance();
634
ProjectInstance
instance = project.CreateProjectInstance();
666
ProjectInstance
instance = project.CreateProjectInstance();
BackEnd\BuildRequestEngine_Tests.cs (1)
234
private
ProjectInstance
CreateStandinProject()
BackEnd\IntrinsicTask_Tests.cs (17)
1278
ProjectInstance
p = project.CreateProjectInstance();
1311
ProjectInstance
p = project.CreateProjectInstance();
2298
ProjectInstance
p = project.CreateProjectInstance();
2332
ProjectInstance
p = project.CreateProjectInstance();
2369
ProjectInstance
p = project.CreateProjectInstance();
2406
ProjectInstance
p = project.CreateProjectInstance();
2443
ProjectInstance
p = project.CreateProjectInstance();
2481
ProjectInstance
p = project.CreateProjectInstance();
2512
ProjectInstance
p = project.CreateProjectInstance();
3199
ProjectInstance
p = project.CreateProjectInstance();
3245
ProjectInstance
p = project.CreateProjectInstance();
3541
ProjectInstance
instance = new ProjectInstance(xml);
3913
private static Lookup GenerateLookupWithItemsAndProperties(
ProjectInstance
project)
3922
private static Lookup GenerateLookup(
ProjectInstance
project)
3927
private static Lookup GenerateLookup(
ProjectInstance
project, PropertyDictionary<ProjectPropertyInstance> properties)
3958
ProjectInstance
projectInstance = project.CreateProjectInstance();
3993
var
projectInstance = project.CreateProjectInstance();
BackEnd\Lookup_Tests.cs (30)
27
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
49
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
81
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
151
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
201
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
252
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
303
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
358
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
400
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
464
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
524
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
595
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
662
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
717
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
765
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
821
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
862
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
897
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
968
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
1014
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
1025
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
1076
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
1129
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
1166
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
1296
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
1356
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
1413
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
1457
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
1511
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
1551
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
BackEnd\MSBuild_Tests.cs (8)
143
ProjectInstance
pi = p.CreateProjectInstance();
556
ProjectInstance
pi = p.CreateProjectInstance();
625
ProjectInstance
pi = p.CreateProjectInstance();
932
ProjectInstance
pi = p.CreateProjectInstance();
1052
ProjectInstance
pi = p.CreateProjectInstance();
1121
ProjectInstance
pi = p.CreateProjectInstance();
1188
ProjectInstance
pi = p.CreateProjectInstance();
1803
ProjectInstance
pi = p.CreateProjectInstance();
BackEnd\OnError_Tests.cs (1)
113
ProjectInstance
p = project.CreateProjectInstance();
BackEnd\SdkResultOutOfProc_Tests.cs (3)
109
ProjectInstance
projectInstance = CreateProjectInstance(projectPath, MSBuildDefaultToolsVersion, _projectCollection);
154
ProjectInstance
projectInstance = CreateProjectInstance(entryProjectPath, MSBuildDefaultToolsVersion, _projectCollection);
197
private
ProjectInstance
CreateProjectInstance(string projectPath, string toolsVersion, ProjectCollection projectCollection)
BackEnd\TargetBuilder_Tests.cs (36)
103
ProjectInstance
project = CreateTestProject();
123
ProjectInstance
project = CreateTestProject();
150
ProjectInstance
project = CreateTestProject();
173
ProjectInstance
project = CreateTestProject();
365
ProjectInstance
project = CreateTestProject(projectBody);
505
ProjectInstance
project = CreateTestProject(projectBody);
531
ProjectInstance
project = CreateTestProject(projectBody);
557
ProjectInstance
project = CreateTestProject(projectBody);
587
ProjectInstance
project = CreateTestProject(projectBody);
622
ProjectInstance
project = CreateTestProject(projectBody);
654
ProjectInstance
project = CreateTestProject(projectBody);
685
ProjectInstance
project = CreateTestProject(projectBody);
711
ProjectInstance
project = CreateTestProject(projectBody);
747
ProjectInstance
project = CreateTestProject(projectBody);
773
ProjectInstance
project = CreateTestProject(projectBody);
800
ProjectInstance
project = CreateTestProject(projectBody);
830
ProjectInstance
project = CreateTestProject(projectBody);
874
ProjectInstance
project = CreateTestProject(projectBody);
901
ProjectInstance
project = CreateTestProject(projectBody);
928
ProjectInstance
project = CreateTestProject(projectBody);
960
ProjectInstance
project = CreateTestProject(projectBody);
1058
ProjectInstance
project = CreateTestProject(projectBody);
1093
ProjectInstance
project = CreateTestProject(projectBody);
1144
ProjectInstance
project = CreateTestProject(projectBody);
1204
ProjectInstance
project = CreateTestProject(projectBody);
1246
ProjectInstance
project = CreateTestProject(projectBody);
1292
ProjectInstance
project = CreateTestProject(projectBody);
1323
ProjectInstance
project = CreateTestProject(projectBody);
1397
ProjectInstance
project = CreateTestProject(projectBody);
1427
var
project = CreateTestProject(projectContents, string.Empty, "Build");
1455
var
project = CreateTestProject(projectContents, string.Empty, "Build");
1574
private Lookup CreateStandardLookup(
ProjectInstance
project)
1584
private
ProjectInstance
CreateTestProject()
1652
private
ProjectInstance
CreateTestProject(string projectBodyContents)
1660
private
ProjectInstance
CreateTestProject(string projectBodyContents, string initialTargets, string defaultTargets)
1709
ProjectInstance
project = CreateTestProject(projectBody);
BackEnd\TargetEntry_Tests.cs (23)
89
ProjectInstance
project = CreateTestProject(true /* Returns enabled */);
104
ProjectInstance
project = CreateTestProject(true /* Returns enabled */);
118
ProjectInstance
project = CreateTestProject(true /* Returns enabled */);
132
ProjectInstance
project = CreateTestProject(true /* Returns enabled */);
145
ProjectInstance
project = CreateTestProject(true /* Returns enabled */);
159
ProjectInstance
project = CreateTestProject(true /* Returns enabled */);
173
ProjectInstance
project = CreateTestProject(returnsEnabledForThisProject);
210
ProjectInstance
project = CreateTestProject(returnsEnabledForThisProject);
252
ProjectInstance
project = CreateTestProject(returnsEnabledForThisProject);
317
ProjectInstance
project = CreateTestProject(returnsEnabledForThisProject);
346
ProjectInstance
project = CreateTestProject(returnsEnabledForThisProject);
452
ProjectInstance
project = CreateTestProject(returnsEnabledForThisProject);
478
ProjectInstance
project = CreateTestProject(true /* returns are enabled */);
496
ProjectInstance
project = CreateTestProject(true /* returns are enabled */);
515
ProjectInstance
project = CreateTestProject(returnsEnabledForThisProject);
533
ProjectInstance
project = CreateTestProject(returnsEnabledForThisProject);
551
ProjectInstance
project = CreateTestProject(returnsEnabledForThisProject);
569
ProjectInstance
project = CreateTestProject(returnsEnabledForThisProject);
587
ProjectInstance
project = CreateTestProject(returnsEnabledForThisProject);
896
private void ExecuteEntry(
ProjectInstance
project, TargetEntry entry)
919
private TargetEntry CreateStandardTargetEntry(
ProjectInstance
project, string targetName)
937
private TargetEntry CreateStandardTargetEntry(
ProjectInstance
project, string target, TargetEntry baseEntry)
950
private
ProjectInstance
CreateTestProject(bool returnsAttributeEnabled)
BackEnd\TargetUpToDateChecker_Tests.cs (4)
171
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
208
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
252
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
611
ProjectInstance
p = project.CreateProjectInstance();
BackEnd\TaskExecutionHost_Tests.cs (4)
984
ProjectInstance
project = CreateTestProject();
1014
ProjectInstance
project = CreateTestProject();
1246
ProjectInstance
project = CreateTestProject();
1499
private
ProjectInstance
CreateTestProject()
BackEnd\TaskHostCallback_Tests.cs (7)
53
ProjectInstance
projectInstance = new(project.ProjectFile);
128
ProjectInstance
projectInstance = new(project.ProjectFile);
159
ProjectInstance
projectInstance = new(project.ProjectFile);
349
ProjectInstance
projectInstance = new(project.ProjectFile);
388
ProjectInstance
projectInstance = new(project.ProjectFile);
434
ProjectInstance
projectInstance = new(project.ProjectFile);
474
ProjectInstance
projectInstance = new(project.ProjectFile);
BackEnd\TaskHostFactory_Tests.cs (4)
73
ProjectInstance
projectInstance = new(project.Path);
178
ProjectInstance
projectInstance = new(project.Path);
331
ProjectInstance
projectInstance = new(project.ProjectFile);
390
ProjectInstance
projectInstance = new(project.Path);
BackEnd\TaskRegistry_Tests.cs (1)
2067
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
Collections\OMcollections_tests.cs (2)
311
ProjectInstance
projectInstance = project.CreateProjectInstance();
323
ProjectInstance
projectInstance = project.CreateProjectInstance();
Construction\SolutionFilter_Tests.cs (1)
142
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, null, _buildEventContext, mockLogger);
Construction\SolutionProjectGenerator_Tests.cs (43)
77
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(SolutionFile.Parse(sln.Path), null, null, _buildEventContext, CreateMockLoggingService());
107
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(SolutionFile.Parse(solutionPath), null, null, _buildEventContext, CreateMockLoggingService());
403
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, "3.5", _buildEventContext, CreateMockLoggingService());
444
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, "3.5", _buildEventContext, CreateMockLoggingService());
474
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, null, _buildEventContext, CreateMockLoggingService());
521
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, null, _buildEventContext, CreateMockLoggingService());
562
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, null, _buildEventContext, CreateMockLoggingService());
675
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(sp, null, null, _buildEventContext, CreateMockLoggingService());
697
ProjectInstance
[] instances1 = SolutionProjectGenerator.Generate(sp1, null, null, _buildEventContext, CreateMockLoggingService());
761
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(sp, null, null, _buildEventContext, CreateMockLoggingService());
823
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(sp, null, null, _buildEventContext, CreateMockLoggingService());
1097
var
projectBravoMetaProject = instances[1];
1321
var
instance = SolutionProjectGenerator.Generate(solution, null, ObjectModelHelpers.MSBuildDefaultToolsVersion, _buildEventContext, CreateMockLoggingService())[0];
1393
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, ObjectModelHelpers.MSBuildDefaultToolsVersion, _buildEventContext, CreateMockLoggingService());
1396
foreach (
ProjectInstance
instance in instances)
1477
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, solutionToolsVersion, _buildEventContext, CreateMockLoggingService());
1542
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, "invalid", _buildEventContext, CreateMockLoggingService());
1588
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService());
1669
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService());
1701
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService());
1728
ProjectInstance
msbuildProject = CreateVenusSolutionProject(globalProperties, useNewParser);
1759
ProjectInstance
msbuildProject = CreateVenusSolutionProject(useNewParser);
1798
ProjectInstance
msbuildProject = CreateVenusSolutionProject("2.0", useNewParser);
1826
ProjectInstance
msbuildProject = CreateVenusSolutionProject(useNewParser);
1854
ProjectInstance
msbuildProject = CreateVenusSolutionProject(useNewParser);
1965
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService());
2026
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService());
2111
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, globalProperties, null, BuildEventContext.Invalid, CreateMockLoggingService());
2112
ProjectInstance
msbuildProject = instances[0];
2383
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, globalProperties, null, BuildEventContext.Invalid, collection.LoggingService);
2589
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "One" });
2648
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), null);
2701
ProjectInstance
[] instances;
2788
ProjectInstance
projectInstance = SolutionProjectGenerator.Generate(solutionFile, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new[] { "MyTarget" }).FirstOrDefault();
2849
ProjectInstance
projectInstance = SolutionProjectGenerator.Generate(solutionFile, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), targetsToBuild).FirstOrDefault();
2966
ProjectInstance
projectInstance = SolutionProjectGenerator.Generate(solutionFile, globalProperties, null, BuildEventContext.Invalid, CreateMockLoggingService(), new[] { "Build" }).FirstOrDefault();
3010
private
ProjectInstance
CreateVenusSolutionProject(bool useNewParser)
3018
private
ProjectInstance
CreateVenusSolutionProject(IDictionary<string, string> globalProperties, bool useNewParser)
3026
private
ProjectInstance
CreateVenusSolutionProject(string toolsVersion, bool useNewParser)
3037
private
ProjectInstance
CreateVenusSolutionProject(IDictionary<string, string> globalProperties, string toolsVersion, bool useNewParser)
3079
ProjectInstance
[] instances = SolutionProjectGenerator.Generate(solution, globalProperties, toolsVersion, BuildEventContext.Invalid, CreateMockLoggingService());
3098
private void AssertProjectContainsItem(
ProjectInstance
msbuildProject, string itemType, string include)
3118
private void AssertProjectItemNameCount(
ProjectInstance
msbuildProject, string itemType, int count)
Definition\ItemDefinitionGroup_Tests.cs (3)
596
ProjectInstance
pi = p.CreateProjectInstance();
632
ProjectInstance
pi = p.CreateProjectInstance();
674
ProjectInstance
pi = p.CreateProjectInstance();
Definition\ProjectEvaluationContext_Tests.cs (3)
152
var
projectInstance =
ProjectInstance
.FromFile(
248
ProjectInstance
.FromProjectRootElement(
Definition\ProjectHelpers.cs (2)
20
internal static
ProjectInstance
CreateEmptyProjectInstance()
26
ProjectInstance
instance = project.CreateProjectInstance();
Definition\ToolsVersion_Tests.cs (8)
636
ProjectInstance
pi = projectFromString.Project.CreateProjectInstance();
670
ProjectInstance
pi = projectFromString.Project.CreateProjectInstance();
707
ProjectInstance
pi = projectFromString.Project.CreateProjectInstance();
748
ProjectInstance
pi = projectFromString.Project.CreateProjectInstance();
792
ProjectInstance
pi = new ProjectInstance(projectFromString.Project.Xml, null /* no global properties */, null /* don't explicitly set the toolsversion */, p);
826
ProjectInstance
pi = new ProjectInstance(projectFromString.Project.Xml, null /* no global properties */, null /* don't explicitly set the toolsversion */, p);
862
ProjectInstance
pi = new ProjectInstance(projectFromString.Project.Xml, null /* no global properties */, null /* don't explicitly set the toolsversion */, p);
902
ProjectInstance
pi = new ProjectInstance(projectFromString.Project.Xml, null /* no global properties */, null /* don't explicitly set the toolsversion */, p);
EscapingInProjects_Tests.cs (1)
649
ProjectInstance
projectInstance = project.CreateProjectInstance();
Evaluation\Evaluator_Tests.cs (5)
484
ProjectInstance
project = new ProjectInstance(subdirProjPath);
1462
ProjectInstance
instance = project.CreateProjectInstance();
2349
ProjectInstance
instance = project.CreateProjectInstance();
2374
ProjectInstance
instance = project.CreateProjectInstance();
2398
ProjectInstance
instance = project.CreateProjectInstance();
Evaluation\Expander_Tests.cs (23)
89
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
146
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
181
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
201
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
221
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
242
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
259
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
285
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
696
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
734
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
754
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
774
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
792
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
841
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
1402
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
1615
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
3975
ProjectInstance
project = ProjectHelpers.CreateEmptyProjectInstance();
4909
ProjectInstance
projectInstance = new ProjectInstance(projectFile.Path);
4953
ProjectInstance
projectInstance = new ProjectInstance(projectFile.Path);
4982
ProjectInstance
projectInstance = new ProjectInstance(projectFile.Path);
5029
ProjectInstance
projectInstance = new ProjectInstance(projectFile.Path);
5070
ProjectInstance
projectInstance = new ProjectInstance(projectFile.Path);
5104
ProjectInstance
projectInstance = new ProjectInstance(projectFile.Path);
Evaluation\ItemSpec_Tests.cs (1)
103
var
dummyProject = ProjectHelpers.CreateEmptyProjectInstance();
Evaluation\SdkResultEvaluation_Tests.cs (2)
537
var
instance = project.CreateProjectInstance();
587
var
instance = project.CreateProjectInstance();
EvaluationProfiler_Tests.cs (1)
280
var
projectInstance = _buildManager.GetProjectInstanceForBuild(project);
ExpressionTree_Tests.cs (6)
182
ProjectInstance
parentProject = new ProjectInstance(ProjectRootElement.Create());
212
ProjectInstance
parentProject = new ProjectInstance(ProjectRootElement.Create());
247
ProjectInstance
parentProject = new ProjectInstance(ProjectRootElement.Create());
279
ProjectInstance
parentProject = new ProjectInstance(ProjectRootElement.Create());
296
ProjectInstance
parentProject = new ProjectInstance(ProjectRootElement.Create());
325
ProjectInstance
parentProject = new ProjectInstance(ProjectRootElement.Create());
ExpressionTreeExpression_Tests.cs (1)
373
ProjectInstance
parentProject = new ProjectInstance(xml);
Graph\ProjectGraph_Tests.cs (2)
134
var
projectInstance = new Project().CreateProjectInstance();
181
var
projectInstance = new Project().CreateProjectInstance();
Instance\HostServices_Tests.cs (3)
390
ProjectInstance
project = CreateDummyProject("foo.proj");
474
public
ProjectInstance
CreateDummyProject(string fileName)
485
ProjectInstance
instance = project.CreateProjectInstance();
Instance\ProjectInstance_Internal_Tests.cs (57)
69
ProjectInstance
project = new Project(projectRootElementFromString.Project).CreateProjectInstance();
117
ProjectInstance
project = new Project(projectRootElementFromString.Project).CreateProjectInstance();
143
ProjectInstance
project = projectFromString.Project.CreateProjectInstance();
171
ProjectInstance
p = GetProjectInstance(content);
209
ProjectInstance
p = GetProjectInstance(content);
255
ProjectInstance
p = GetSampleProjectInstance();
266
ProjectInstance
p = GetSampleProjectInstance();
278
ProjectInstance
p = GetSampleProjectInstance();
287
var
projectInstance = new ProjectInstance(
301
ProjectInstance
first = GetSampleProjectInstance(null, null, projectCollection, toolsVersion: "TESTTV");
302
ProjectInstance
second = first.DeepCopy();
321
ProjectInstance
p = GetSampleProjectInstance(null, null, collection);
355
ProjectInstance
p = GetSampleProjectInstance(null, null, collection);
383
ProjectInstance
p = GetSampleProjectInstance(null, globalProperties, collection);
424
ProjectInstance
p = new ProjectInstance(xml, globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, "ABCDEF", collection);
442
ProjectInstance
p = GetSampleProjectInstance();
453
ProjectInstance
p = GetSampleProjectInstance();
466
ProjectInstance
first = GetSampleProjectInstance(hostServices);
467
ProjectInstance
second = first.DeepCopy();
486
ProjectInstance
first = GetSampleProjectInstance();
487
ProjectInstance
second = first.DeepCopy();
499
ProjectInstance
first = GetSampleProjectInstance();
500
ProjectInstance
second = first.DeepCopy();
512
ProjectInstance
first = GetSampleProjectInstance();
513
ProjectInstance
second = first.DeepCopy();
524
ProjectInstance
first = GetSampleProjectInstance();
525
ProjectInstance
second = first.DeepCopy();
536
ProjectInstance
first = GetSampleProjectInstance();
537
ProjectInstance
second = first.DeepCopy();
548
ProjectInstance
first = GetSampleProjectInstance();
551
ProjectInstance
second = first.DeepCopy();
579
ProjectInstance
projectInstance = GetProjectInstance(projectFileContent);
690
var
original = new ProjectInstance(rootElement);
695
var
copy =
ProjectInstance
.FactoryForDeserialization(TranslationHelpers.GetReadTranslator());
700
public delegate
ProjectInstance
ProjectInstanceFactory(string file, ProjectRootElement xml, ProjectCollection collection);
713
(f, xml, c) =>
ProjectInstance
.FromFile(f, new ProjectOptions { ProjectCollection = c })
737
(f, xml, c) =>
ProjectInstance
.FromProjectRootElement(xml, new ProjectOptions { ProjectCollection = c })
745
var
pi = new ProjectInstance(f, null, null, c);
750
var
copy =
ProjectInstance
.FactoryForDeserialization(TranslationHelpers.GetReadTranslator());
769
var
projectInstance = projectInstanceFactory.Invoke(file, xml, projectCollection);
783
ProjectInstance
projectInstance = new ProjectInstance(rootElement);
819
ProjectInstance
projectInstance = new ProjectInstance(rootElement);
863
ProjectInstance
projectInstance = useDirectConstruction
897
ProjectInstance
projectInstance =
ProjectInstance
.FromFile(
925
ProjectInstance
projectInstance =
ProjectInstance
.FromProjectRootElement(
940
private static
ProjectInstance
GetProjectInstance(string content)
948
private static
ProjectInstance
GetProjectInstance(string content, HostServices hostServices)
956
private static
ProjectInstance
GetProjectInstance(string content, HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null)
969
ProjectInstance
instance = project.CreateProjectInstance();
977
private static
ProjectInstance
GetSampleProjectInstance()
985
private static
ProjectInstance
GetSampleProjectInstance(HostServices hostServices)
993
private static
ProjectInstance
GetSampleProjectInstance(HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null)
1018
ProjectInstance
p = GetProjectInstance(content, hostServices, globalProperties, projectCollection, toolsVersion);
Instance\ProjectMetadataInstance_Internal_Tests.cs (1)
57
ProjectInstance
projectInstance = project.CreateProjectInstance();
Instance\ProjectPropertyInstance_Internal_Tests.cs (1)
95
ProjectInstance
projectInstance = project.CreateProjectInstance();
InstanceFromRemote\FakeProjectLink.cs (1)
87
public override
ProjectInstance
CreateProjectInstance(ProjectInstanceSettings settings, EvaluationContext evaluationContext) => throw new NotImplementedException();
InstanceFromRemote\ProjectInstance_FromImmutableProjectLink_Tests.cs (8)
26
ProjectInstance
instance =
ProjectInstance
.FromImmutableProjectSource(project, ProjectInstanceSettings.ImmutableWithFastItemLookup);
44
ProjectInstance
instance =
ProjectInstance
.FromImmutableProjectSource(project, ProjectInstanceSettings.ImmutableWithFastItemLookup);
65
ProjectInstance
instance =
ProjectInstance
.FromImmutableProjectSource(project, ProjectInstanceSettings.ImmutableWithFastItemLookup);
100
ProjectInstance
instance =
ProjectInstance
.FromImmutableProjectSource(project, ProjectInstanceSettings.ImmutableWithFastItemLookup);
TestComparers\ProjectInstanceModelTestComparers.cs (4)
22
public class ProjectInstanceComparer : IEqualityComparer<
ProjectInstance
>
24
public bool Equals(
ProjectInstance
x,
ProjectInstance
y)
74
public int GetHashCode(
ProjectInstance
obj)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (29)
TargetTests.cs (29)
34
var
instance = CreateProjectInstance(xmlReader);
58
var
instance = CreateProjectInstance(xmlReader);
82
var
instance = CreateProjectInstance(xmlReader);
107
var
instance = CreateProjectInstance(xmlReader);
134
var
instance = CreateProjectInstance(xmlReader);
160
var
instance = CreateProjectInstance(xmlReader);
193
var
instance = CreateProjectInstance(xmlReader);
222
var
instance = CreateProjectInstance(xmlReader);
254
var
instance = CreateProjectInstance(xmlReader);
296
var
instance = CreateProjectInstance(xmlReader);
336
var
instance = CreateProjectInstance(xmlReader);
371
var
instance = CreateProjectInstance(xmlReader);
429
var
instance = CreateProjectInstance(xmlReader);
458
var
instance = CreateProjectInstance(xmlReader);
482
var
instance = CreateProjectInstance(xmlReader);
509
var
instance = CreateProjectInstance(xmlReader);
534
var
instance = CreateProjectInstance(xmlReader);
558
var
instance = CreateProjectInstance(xmlReader);
584
var
instance = CreateProjectInstance(xmlReader);
605
var
instance = CreateProjectInstance(xmlReader);
630
var
instance = CreateProjectInstance(xmlReader);
656
var
instance = CreateProjectInstance(xmlReader);
695
var
instance = CreateProjectInstance(xmlReader);
752
var
instance = CreateProjectInstance(xmlReader);
813
var
instance = CreateProjectInstance(xmlReader);
875
var
instance = CreateProjectInstance(xmlReader);
893
var
instance = CreateProjectInstance(xmlReader);
910
var
instance = CreateProjectInstance(xmlReader);
925
private static
ProjectInstance
CreateProjectInstance(XmlReader reader)
Microsoft.Build.Tasks.UnitTests (9)
AssignLinkMetadata_Tests.cs (1)
181
ProjectInstance
pi = p.CreateProjectInstance();
CallTarget_Tests.cs (1)
176
ProjectInstance
instance = project.CreateProjectInstance();
Exec_Tests.cs (2)
980
var
project = collection.LoadProject(testProject.ProjectFile).CreateProjectInstance();
1037
var
project = collection.LoadProject(testProject.ProjectFile).CreateProjectInstance();
ResolveSDKReference_Tests.cs (5)
3811
ProjectInstance
project = pc.LoadProject(testProjectFile).CreateProjectInstance();
3954
ProjectInstance
project = pc.LoadProject(testProjectFile).CreateProjectInstance();
4063
ProjectInstance
project = pc.LoadProject(testProjectFile).CreateProjectInstance();
4160
ProjectInstance
project = pc.LoadProject(testProjectFile).CreateProjectInstance();
4329
ProjectInstance
project = pc.LoadProject(testProjectFile).CreateProjectInstance();
Microsoft.Build.UnitTests.Shared (3)
MockEngine.cs (1)
338
ProjectInstance
instance = _projectCollection.LoadProject(projectFileNames[i], finalGlobalProperties, null).CreateProjectInstance();
ObjectModelHelpers.cs (2)
1498
var
p =
ProjectInstance
.FromFile(testProjectFile, new ProjectOptions());
Microsoft.Build.Utilities.UnitTests (7)
MuxLogger_Tests.cs (7)
52
ProjectInstance
project = (projectFromString.Project).CreateProjectInstance();
95
ProjectInstance
project = projectFromString.Project.CreateProjectInstance();
147
ProjectInstance
project = (projectFromString.Project).CreateProjectInstance();
200
ProjectInstance
project1 = projectFromString1.Project.CreateProjectInstance();
201
ProjectInstance
project2 = projectFromString2.Project.CreateProjectInstance();
256
ProjectInstance
project = (projectFromString.Project).CreateProjectInstance();
305
ProjectInstance
project = (projectFromString.Project).CreateProjectInstance();
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 (38)
Build\ProjectBuildManager.cs (6)
292
public async Task<MSB.Execution.
ProjectInstance
[]> BuildProjectInstancesAsync(
312
var results = new List<MSB.Execution.
ProjectInstance
>(targetFrameworks.Length);
318
var
projectInstance = await BuildProjectInstanceAsync(project, log, cancellationToken).ConfigureAwait(false);
336
private Task<MSB.Execution.
ProjectInstance
> BuildProjectInstanceAsync(
347
private async Task<MSB.Execution.
ProjectInstance
> BuildProjectInstanceAsync(
352
var
projectInstance = project.CreateProjectInstance();
MSBuild\CSharp\CSharpCommandLineArgumentReader.cs (2)
11
private CSharpCommandLineArgumentReader(MSB.Execution.
ProjectInstance
project)
16
public static string[] Read(MSB.Execution.
ProjectInstance
project)
MSBuild\CSharp\CSharpProjectCommandLineReader.cs (2)
17
public override IEnumerable<MSB.Framework.ITaskItem> GetCompilerCommandLineArgs(MSB.Execution.
ProjectInstance
executedProject)
20
public override string[] ReadCommandLineArgs(MSB.Execution.
ProjectInstance
project)
MSBuild\ProjectFile\CommandLineArgumentReader.cs (2)
15
protected readonly MSB.Execution.
ProjectInstance
Project;
18
protected CommandLineArgumentReader(MSB.Execution.
ProjectInstance
project)
MSBuild\ProjectFile\Extensions.cs (16)
15
public static IEnumerable<MSB.Framework.ITaskItem> GetAdditionalFiles(this MSB.Execution.
ProjectInstance
executedProject)
18
public static IEnumerable<MSB.Framework.ITaskItem> GetAnalyzers(this MSB.Execution.
ProjectInstance
executedProject)
21
public static IEnumerable<MSB.Framework.ITaskItem> GetDocuments(this MSB.Execution.
ProjectInstance
executedProject)
24
public static IEnumerable<MSB.Framework.ITaskItem> GetEditorConfigFiles(this MSB.Execution.
ProjectInstance
executedProject)
27
public static IEnumerable<MetadataReferenceItem> GetMetadataReferences(this MSB.Execution.
ProjectInstance
project)
38
public static string GetAbsolutePath(this MSB.Execution.
ProjectInstance
project, string path)
45
public static IEnumerable<ProjectFileReference> GetProjectReferences(this MSB.Execution.
ProjectInstance
executedProject)
50
public static PackageReferenceItem[] GetPackageReferences(this MSB.Execution.
ProjectInstance
executedProject)
89
public static string? ReadPropertyString(this MSB.Execution.
ProjectInstance
executedProject, string propertyName)
92
public static bool ReadPropertyBool(this MSB.Execution.
ProjectInstance
executedProject, string propertyName)
95
public static int ReadPropertyInt(this MSB.Execution.
ProjectInstance
executedProject, string propertyName)
98
public static int ReadCodePage(this MSB.Execution.
ProjectInstance
executedProject)
101
public static ulong ReadPropertyULong(this MSB.Execution.
ProjectInstance
executedProject, string propertyName)
104
public static TEnum? ReadPropertyEnum<TEnum>(this MSB.Execution.
ProjectInstance
executedProject, string propertyName, bool ignoreCase)
108
public static string ReadItemsAsString(this MSB.Execution.
ProjectInstance
executedProject, string itemType)
121
public static IEnumerable<MSB.Framework.ITaskItem> GetTaskItems(this MSB.Execution.
ProjectInstance
executedProject, string itemType)
MSBuild\ProjectFile\ProjectCommandLineReader.cs (2)
17
public abstract IEnumerable<MSB.Framework.ITaskItem> GetCompilerCommandLineArgs(MSB.Execution.
ProjectInstance
executedProject);
18
public abstract string[] ReadCommandLineArgs(MSB.Execution.
ProjectInstance
project);
MSBuild\ProjectFile\ProjectInstanceReader.cs (4)
18
public readonly MSB.Execution.
ProjectInstance
_projectInstance;
27
MSB.Execution.
ProjectInstance
projectInstance,
153
private static string[] GetContentFiles(MSB.Execution.
ProjectInstance
project)
162
private string[] TryGetCommandLineArgs(MSB.Execution.
ProjectInstance
project)
MSBuild\VisualBasic\VisualBasicCommandLineArgumentReader.cs (2)
13
public VisualBasicCommandLineArgumentReader(MSB.Execution.
ProjectInstance
project)
18
public static string[] Read(MSB.Execution.
ProjectInstance
project)
MSBuild\VisualBasic\VisualBasicProjectCommandLineReader.cs (2)
17
public override IEnumerable<MSB.Framework.ITaskItem> GetCompilerCommandLineArgs(MSB.Execution.
ProjectInstance
executedProject)
20
public override string[] ReadCommandLineArgs(MSB.Execution.
ProjectInstance
project)
MSBuild (2)
JsonOutputFormatter.cs (1)
46
internal void AddItemInstancesInJsonFormat(string[] itemNames,
ProjectInstance
project)
XMake.cs (1)
1142
ProjectInstance
builtProject = result.ProjectStateAfterBuild;
MSBuild.Benchmarks (4)
DefiningProjectModifiersBenchmark.cs (2)
27
private
ProjectInstance
_singleProjectInstance = null!;
28
private
ProjectInstance
_multiProjectInstance = null!;
ItemSpecModifiersCachingBenchmark.cs (1)
28
private
ProjectInstance
_projectInstance = null!;
LookupGetItemsBenchmark.cs (1)
41
private
ProjectInstance
_project = null!;