18 references to PropertyNames
Microsoft.Build (12)
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (3)
48
if (context.Data.EvaluatedProperties.TryGetValue(
PropertyNames
.TargetFrameworks, out frameworks) &&
49
context.Data.EvaluatedProperties.TryGetValue(
PropertyNames
.TargetFramework, out framework) &&
50
!context.Data.GlobalProperties.ContainsKey(
PropertyNames
.TargetFramework))
BuildCheck\Checks\TargetFrameworkUnexpectedCheck.cs (3)
54
if ((context.Data.EvaluatedProperties.TryGetValue(
PropertyNames
.TargetFrameworks, out frameworks) ||
55
context.Data.EvaluatedProperties.TryGetValue(
PropertyNames
.TargetFramework, out framework)) &&
66
=> evaluatedProperties.TryGetValue(
PropertyNames
.UsingMicrosoftNETSdk, out string? usingSdkStr) &&
Graph\GraphBuilder.cs (3)
427
if (globalPropertyDictionary.GetProperty(
PropertyNames
.IsGraphBuild) == null)
429
globalPropertyDictionary[
PropertyNames
.IsGraphBuild] = ProjectPropertyInstance.Create(
PropertyNames
.IsGraphBuild, "true");
Graph\ProjectInterpretation.cs (3)
218
return project.GetPropertyValue(
PropertyNames
.InnerBuildProperty);
223
return project.GetPropertyValue(project.GetPropertyValue(
PropertyNames
.InnerBuildPropertyValues));
559
MSBuildStringIsTrue(projectInstance.GetEngineRequiredPropertyValue(
PropertyNames
.UsingMicrosoftNETSdk)) &&
Microsoft.Build.Engine.UnitTests (4)
Graph\GraphTestingUtilities.cs (1)
20
public static readonly ImmutableDictionary<string, string> EmptyGlobalProperties = new Dictionary<string, string> { {
PropertyNames
.IsGraphBuild, "true" } }.ToImmutableDictionary();
Graph\ProjectGraph_Tests.cs (3)
2332
expectedGlobalProperties[
PropertyNames
.IsGraphBuild] = "true";
2349
new Dictionary<string, string> { {
PropertyNames
.IsGraphBuild, "xyz" } });
2351
projectGraph.ProjectNodes.First().ProjectInstance.GlobalProperties[
PropertyNames
.IsGraphBuild].ShouldBe("xyz");
MSBuild (2)
XMake.cs (2)
1623
if (!entryPoint.GlobalProperties.ContainsKey(
PropertyNames
.IsGraphBuild))
1625
entryPoint.GlobalProperties[
PropertyNames
.IsGraphBuild] = "true";