20 references to ProjectFileOnly
Microsoft.Build (7)
BuildCheck\API\CheckConfiguration.cs (2)
24
EvaluationCheckScope = BuildCheck.EvaluationCheckScope.
ProjectFileOnly
,
88
return BuildCheck.EvaluationCheckScope.
ProjectFileOnly
;
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
22
new CheckConfiguration() { Severity = CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.
ProjectFileOnly
});
27
new CheckConfiguration() { Severity = CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.
ProjectFileOnly
});
32
new CheckConfiguration() { Severity = CheckResultSeverity.Suggestion, 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)
383
[InlineData(EvaluationCheckScope.
ProjectFileOnly
)]
392
EvaluationCheckScope.
ProjectFileOnly
=> "project_file",
412
if(scope == EvaluationCheckScope.
ProjectFileOnly
)