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