4 instantiations of ProjectTargetInstance
Microsoft.Build (3)
Evaluation\Evaluator.cs (1)
583
ProjectTargetInstance targetInstance = new
ProjectTargetInstance
(
Instance\ProjectInstance.cs (1)
2814
ProjectTargetInstance target = new
ProjectTargetInstance
(
Instance\ProjectTargetInstance.cs (1)
587
var instance = new
ProjectTargetInstance
();
Microsoft.Build.Engine.UnitTests (1)
TestData\ProjectInstanceTestObjects.cs (1)
172
return new
ProjectTargetInstance
(
91 references to ProjectTargetInstance
Microsoft.Build (67)
BackEnd\Components\Logging\ProjectLoggingContext.cs (1)
271
internal TargetLoggingContext LogTargetBatchStarted(string projectFullPath,
ProjectTargetInstance
target, string parentTargetName, TargetBuiltReason buildReason)
BackEnd\Components\Logging\TargetLoggingContext.cs (4)
34
private
ProjectTargetInstance
_target;
39
internal TargetLoggingContext(ProjectLoggingContext projectLoggingContext, string projectFullPath,
ProjectTargetInstance
target, string parentTargetName, TargetBuiltReason buildReason)
49
string projectFullPath,
ProjectTargetInstance
target, string parentTargetName,
91
internal
ProjectTargetInstance
Target
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
148
var targetExists = _projectInstance.Targets.TryGetValue(targetName.name, out
ProjectTargetInstance
targetInstance);
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
94
private
ProjectTargetInstance
_target;
272
internal
ProjectTargetInstance
Target
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
55
internal TargetUpToDateChecker(ProjectInstance project,
ProjectTargetInstance
targetToAnalyze, ILoggingService loggingServices, BuildEventContext buildEventContext)
76
internal
ProjectTargetInstance
TargetToAnalyze
1239
private
ProjectTargetInstance
_targetToAnalyze;
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1038
private HashSet<string> GetProjectTargets(IDictionary<string,
ProjectTargetInstance
> projectTargets) => projectTargets.Keys.ToHashSet();
Construction\ProjectTargetElement.cs (1)
347
internal
ProjectTargetInstance
TargetInstance { get; set; }
Construction\Solution\SolutionProjectGenerator.cs (13)
578
ProjectTargetInstance
target,
761
var
targetElement = traversalInstance.AddTarget(
1342
ProjectTargetInstance
target = metaprojectInstance.AddTarget(targetName ?? "Build", String.Empty, String.Empty, outputItemAsItem, null, String.Empty, String.Empty, String.Empty, String.Empty, false /* legacy target returns behaviour */);
1353
private static void AddProjectBuildTask(ProjectInstance traversalProject, ProjectConfigurationInSolution projectConfiguration,
ProjectTargetInstance
target, string targetToBuild, string sourceItems, string condition, string outputItem)
1384
private void AddMetaprojectBuildTask(ProjectInSolution project,
ProjectTargetInstance
target, string targetToBuild, string outputItem)
1854
ProjectTargetInstance
newTarget = metaprojectInstance.AddTarget(targetName ?? "Build", "'$(CurrentSolutionConfigurationContents)' != ''", null, null, null, null, null, null, null, false /* legacy target returns behaviour */);
1924
ProjectTargetInstance
newTarget = traversalProject.AddTarget("ValidateProjects", null, null, null, null, null, null, null, null, false /* legacy target returns behaviour */);
1976
ProjectTargetInstance
target = traversalProject.AddTarget(correctedTargetName, string.Empty, string.Empty, outputItemAsItem, null, string.Empty, dependOnTargets, string.Empty, string.Empty, false /* legacy target returns behaviour */);
1987
private static void AddReferencesBuildTask(
ProjectTargetInstance
target, string targetToBuild, string outputItem)
2045
ProjectTargetInstance
targetElement = traversalProject.AddTarget(actualTargetName, null, null, outputItemAsItem, null, null, null, null, null, false /* legacy target returns behaviour */);
2347
ProjectTargetInstance
initialTarget = traversalProject.AddTarget("ValidateSolutionConfiguration", null, null, null, null, null, null, null, null, false /* legacy target returns behaviour */);
2382
ProjectTargetInstance
validateToolsVersionsTarget = traversalProject.AddTarget("ValidateToolsVersions", null, null, null, null, null, null, null, null, false /* legacy target returns behaviour */);
2395
var
initialTarget = traversalProject.AddTarget(
Definition\Project.cs (12)
699
public IDictionary<string,
ProjectTargetInstance
> Targets => implementation.Targets;
2298
public override IDictionary<string,
ProjectTargetInstance
> Targets
2305
return ReadOnlyEmptyDictionary<string,
ProjectTargetInstance
>.Instance;
2308
return new ObjectModel.ReadOnlyDictionary<string,
ProjectTargetInstance
>(_data.Targets);
4015
private static WeakReference<RetrievableEntryHashSet<
ProjectTargetInstance
>> s_typicalTargetsCollection;
4232
internal RetrievableEntryHashSet<
ProjectTargetInstance
> Targets { get; set; }
4274
Targets = new RetrievableEntryHashSet<
ProjectTargetInstance
>(StringComparer.OrdinalIgnoreCase);
4340
s_typicalTargetsCollection = new WeakReference<RetrievableEntryHashSet<
ProjectTargetInstance
>>(Targets);
4345
if (s_typicalTargetsCollection.TryGetTarget(out RetrievableEntryHashSet<
ProjectTargetInstance
> candidate) && candidate.EntriesAreReferenceEquals(Targets))
4467
public
ProjectTargetInstance
GetTarget(string targetName)
4469
Targets.TryGetValue(targetName, out
ProjectTargetInstance
target);
4476
public void AddTarget(
ProjectTargetInstance
target)
Evaluation\Evaluator.cs (4)
547
private static
ProjectTargetInstance
ReadNewTargetElement(ProjectTargetElement targetElement, bool parentProjectSupportsReturnsAttribute, EvaluationProfiler evaluationProfiler)
583
ProjectTargetInstance
targetInstance = new ProjectTargetInstance(
1033
ProjectTargetInstance
targetInstance = targetElement.TargetInstance ?? ReadNewTargetElement(targetElement, _projectSupportsReturnsAttribute[(ProjectRootElement)targetElement.Parent], _evaluationProfiler);
1036
ProjectTargetInstance
otherTarget = _data.GetTarget(targetName);
Evaluation\IEvaluatorData.cs (2)
281
ProjectTargetInstance
GetTarget(string targetName);
286
void AddTarget(
ProjectTargetInstance
target);
Evaluation\LazyItemEvaluator.EvaluatorData.cs (2)
239
public void AddTarget(
ProjectTargetInstance
target)
289
public
ProjectTargetInstance
GetTarget(string targetName)
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (2)
160
public
ProjectTargetInstance
GetTarget(string targetName) => _wrapped.GetTarget(targetName);
161
public void AddTarget(
ProjectTargetInstance
target) => _wrapped.AddTarget(target);
Instance\ProjectInstance.cs (16)
84
private RetrievableEntryHashSet<
ProjectTargetInstance
> _actualTargets;
91
private IDictionary<string,
ProjectTargetInstance
> _targets;
541
_actualTargets = new RetrievableEntryHashSet<
ProjectTargetInstance
>(StringComparer.OrdinalIgnoreCase);
542
_targets = new ObjectModel.ReadOnlyDictionary<string,
ProjectTargetInstance
>(_actualTargets);
1253
public IDictionary<string,
ProjectTargetInstance
> Targets
1818
ProjectTargetInstance
IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GetTarget(string targetName)
1820
ProjectTargetInstance
targetInstance;
1831
void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AddTarget(
ProjectTargetInstance
target)
2318
foreach (
ProjectTargetInstance
target in Targets.Values)
2460
ProjectTargetInstance
.FactoryForDeserialization,
2461
capacity => new RetrievableEntryHashSet<
ProjectTargetInstance
>(capacity, MSBuildNameIgnoreCaseComparer.Default));
2797
internal
ProjectTargetInstance
AddTarget(
2814
ProjectTargetInstance
target = new ProjectTargetInstance(
3092
_actualTargets = new RetrievableEntryHashSet<
ProjectTargetInstance
>(StringComparer.OrdinalIgnoreCase);
3093
_targets = new ObjectModel.ReadOnlyDictionary<string,
ProjectTargetInstance
>(_actualTargets);
3205
IDictionary<string,
ProjectTargetInstance
> targets,
Instance\ProjectTargetInstance.cs (2)
585
internal static
ProjectTargetInstance
FactoryForDeserialization(ITranslator translator)
587
var
instance = new ProjectTargetInstance();
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
86
public abstract IDictionary<string,
ProjectTargetInstance
> Targets { get; }
Microsoft.Build.Engine.OM.UnitTests (8)
Instance\ProjectTargetInstance_Tests.cs (7)
27
ProjectTargetInstance
target = GetSampleTargetInstance();
59
ProjectTargetInstance
target = instance.Targets["t"];
79
ProjectTargetInstance
target = instance.Targets["t;"];
99
ProjectTargetInstance
target = instance.Targets["t;"];
122
ProjectTargetInstance
target = project.Targets["t"];
135
private static
ProjectTargetInstance
GetSampleTargetInstance()
149
ProjectTargetInstance
target = instance.Targets["t"];
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
186
public override IDictionary<string,
ProjectTargetInstance
> Targets => throw new NotImplementedException();
Microsoft.Build.Engine.UnitTests (16)
Construction\SolutionProjectGenerator_Tests.cs (5)
1352
foreach (
ProjectTargetInstance
target in instance.Targets.Values)
1534
ProjectTargetInstance
buildTarget = instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Build", StringComparison.OrdinalIgnoreCase)).First().Value;
1535
ProjectTargetInstance
cleanTarget = instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Clean", StringComparison.OrdinalIgnoreCase)).First().Value;
1536
ProjectTargetInstance
rebuildTarget = instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Rebuild", StringComparison.OrdinalIgnoreCase)).First().Value;
1537
ProjectTargetInstance
publishTarget = instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Publish", StringComparison.OrdinalIgnoreCase)).First().Value;
Instance\ProjectInstance_Internal_Tests.cs (3)
476
var
firstTasks = first.Targets["t"];
477
var
secondTasks = second.Targets["t"];
787
ProjectTargetInstance
targetInstance = projectInstance.AddTarget("b", "1==1", "inputs", "outputs", "returns", "keepDuplicateOutputs", "dependsOnTargets", "beforeTargets", "afterTargets", true);
Instance\ProjectTargetInstance_Internal_Tests.cs (3)
77
var
original = CreateTarget(null, children, errorChildren);
80
var
copy =
ProjectTargetInstance
.FactoryForDeserialization(TranslationHelpers.GetReadTranslator());
TestComparers\ProjectInstanceModelTestComparers.cs (4)
80
public class TargetComparer : IEqualityComparer<
ProjectTargetInstance
>
82
public bool Equals(
ProjectTargetInstance
x,
ProjectTargetInstance
y)
110
public int GetHashCode(
ProjectTargetInstance
obj)
TestData\ProjectInstanceTestObjects.cs (1)
163
public static
ProjectTargetInstance
CreateTarget(