20 references to ProjectFileOnly
Microsoft.Build (7)
BuildCheck\API\CheckConfiguration.cs (2)
23EvaluationCheckScope = BuildCheck.EvaluationCheckScope.ProjectFileOnly, 88return BuildCheck.EvaluationCheckScope.ProjectFileOnly;
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
20new CheckConfiguration() { RuleId = "BC0201", Severity = CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly }); 25new CheckConfiguration() { RuleId = "BC0202", Severity = CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly }); 30new CheckConfiguration() { RuleId = "BC0203", Severity = CheckResultSeverity.None, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
BuildCheck\Infrastructure\CheckScopeClassifier.cs (2)
22public static Func<EvaluationCheckScope, bool> IsScopingReady => (scope) => (scope is EvaluationCheckScope.ProjectFileOnly or EvaluationCheckScope.All) || IsScopingInitialized; 51EvaluationCheckScope.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)] 26evaluationCheckScope: EvaluationCheckScope.ProjectFileOnly, 46evaluationCheckScope: EvaluationCheckScope.ProjectFileOnly, 59evaluationCheckScope: EvaluationCheckScope.ProjectFileOnly,
ConfigurationProvider_Tests.cs (1)
121buildConfig.EvaluationCheckScope.ShouldBe(EvaluationCheckScope.ProjectFileOnly);
EndToEndTests.cs (3)
686[InlineData(EvaluationCheckScope.ProjectFileOnly)] 695EvaluationCheckScope.ProjectFileOnly => "project_file", 715if (scope == EvaluationCheckScope.ProjectFileOnly)