20 references to ProjectFileOnly
Microsoft.Build (7)
BuildCheck\API\CheckConfiguration.cs (2)
23
EvaluationCheckScope = BuildCheck.EvaluationCheckScope.
ProjectFileOnly
,
88
return BuildCheck.EvaluationCheckScope.
ProjectFileOnly
;
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
20
new CheckConfiguration() { RuleId = "BC0201", Severity = CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.
ProjectFileOnly
});
25
new CheckConfiguration() { RuleId = "BC0202", Severity = CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.
ProjectFileOnly
});
30
new CheckConfiguration() { RuleId = "BC0203", Severity = CheckResultSeverity.None, EvaluationCheckScope = EvaluationCheckScope.
ProjectFileOnly
});
BuildCheck\Infrastructure\CheckScopeClassifier.cs (2)
22
public static Func<EvaluationCheckScope, bool> IsScopingReady => (scope) => (scope is EvaluationCheckScope.
ProjectFileOnly
or EvaluationCheckScope.All) || IsScopingInitialized;
51
EvaluationCheckScope.
ProjectFileOnly
=> filePathOfEvent == projectFileFullPath,
Microsoft.Build.BuildCheck.UnitTests (13)
CheckConfiguration_Test.cs (3)
78
[InlineData("project_file", EvaluationCheckScope.
ProjectFileOnly
)]
79
[InlineData("projectfile", EvaluationCheckScope.
ProjectFileOnly
)]
80
[InlineData("PROJECT_FILE", EvaluationCheckScope.
ProjectFileOnly
)]
CheckConfigurationEffectiveTests.cs (6)
15
[InlineData("ruleId", EvaluationCheckScope.
ProjectFileOnly
, CheckResultSeverity.Warning, true)]
16
[InlineData("ruleId2", EvaluationCheckScope.
ProjectFileOnly
, CheckResultSeverity.Warning, true)]
17
[InlineData("ruleId", EvaluationCheckScope.
ProjectFileOnly
, CheckResultSeverity.Error, false)]
26
evaluationCheckScope: EvaluationCheckScope.
ProjectFileOnly
,
46
evaluationCheckScope: EvaluationCheckScope.
ProjectFileOnly
,
59
evaluationCheckScope: EvaluationCheckScope.
ProjectFileOnly
,
ConfigurationProvider_Tests.cs (1)
121
buildConfig.EvaluationCheckScope.ShouldBe(EvaluationCheckScope.
ProjectFileOnly
);
EndToEndTests.cs (3)
686
[InlineData(EvaluationCheckScope.
ProjectFileOnly
)]
695
EvaluationCheckScope.
ProjectFileOnly
=> "project_file",
715
if (scope == EvaluationCheckScope.
ProjectFileOnly
)