2 instantiations of BuildCheckResult
Microsoft.Build (2)
BuildCheck\API\BuildCheckResult.cs (2)
18
public static BuildCheckResult Create(CheckRule rule, IMSBuildElementLocation location, params string[] messageArgs) => new
BuildCheckResult
(rule, location, messageArgs);
21
params string[] messageArgs) => new
BuildCheckResult
(rule, location, messageArgs) { _isBuiltIn = true };
44 references to BuildCheckResult
CustomCheck (2)
Check1.cs (1)
46
context.ReportResult(
BuildCheckResult
.Create(
Check2.cs (1)
35
context.ReportResult(
BuildCheckResult
.Create(
CustomCheck2 (1)
Check3.cs (1)
35
context.ReportResult(
BuildCheckResult
.Create(
ErrorCustomCheck (2)
ErrorOnInitializeCheck.cs (1)
37
context.ReportResult(
BuildCheckResult
.Create(
ErrorWhenRegisteringActions.cs (1)
37
context.ReportResult(
BuildCheckResult
.Create(
Microsoft.Build (30)
BuildCheck\API\BuildCheckResult.cs (2)
18
public static
BuildCheckResult
Create(CheckRule rule, IMSBuildElementLocation location, params string[] messageArgs) => new BuildCheckResult(rule, location, messageArgs);
20
internal static
BuildCheckResult
CreateBuiltIn(CheckRule rule, IMSBuildElementLocation location,
BuildCheck\API\CheckRule.cs (1)
83
/// Message format that will be used by the actual reports (<see cref="
BuildCheckResult
"/>) - those will just supply the actual arguments.
BuildCheck\Checks\CopyAlwaysCheck.cs (1)
80
context.ReportResult(
BuildCheckResult
.Create(
BuildCheck\Checks\DoubleWritesCheck.cs (1)
114
context.ReportResult(
BuildCheckResult
.CreateBuiltIn(
BuildCheck\Checks\EmbeddedResourceCheck.cs (1)
75
context.ReportResult(
BuildCheckResult
.Create(
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (2)
66
context.ReportResult(
BuildCheckResult
.CreateBuiltIn(
91
context.ReportResult(
BuildCheckResult
.CreateBuiltIn(
BuildCheck\Checks\PreferProjectReferenceCheck.cs (2)
71
context.ReportResult(
BuildCheckResult
.Create(
99
context.ReportResult(
BuildCheckResult
.Create(
BuildCheck\Checks\PropertiesUsageCheck.cs (5)
149
context.ReportResult(
BuildCheckResult
.CreateBuiltIn(
161
context.ReportResult(
BuildCheckResult
.CreateBuiltIn(
206
context.ReportResult(
BuildCheckResult
.CreateBuiltIn(
221
context.ReportResult(
BuildCheckResult
.CreateBuiltIn(
232
context.ReportResult(
BuildCheckResult
.CreateBuiltIn(
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
77
context.ReportResult(
BuildCheckResult
.CreateBuiltIn(
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (1)
53
context.ReportResult(
BuildCheckResult
.Create(
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (11)
134
Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[],
BuildCheckResult
>
141
Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[],
BuildCheckResult
>
150
Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[],
BuildCheckResult
>
158
Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[],
BuildCheckResult
>
166
Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[],
BuildCheckResult
>
174
Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[],
BuildCheckResult
>
182
Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[],
BuildCheckResult
>
190
Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[],
BuildCheckResult
>
198
Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[],
BuildCheckResult
> resultHandler)
204
Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[],
BuildCheckResult
> resultHandler)
211
Action<CheckWrapper, ICheckContext, CheckConfigurationEffective[],
BuildCheckResult
> resultHandler)
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
248
BuildCheckResult
result)
BuildCheck\Infrastructure\CheckWrapper.cs (1)
153
internal void ReportResult(
BuildCheckResult
result, ICheckContext checkContext, CheckConfigurationEffective config)
Microsoft.Build.BuildCheck.UnitTests (9)
BuildCheckManagerProviderTests.cs (1)
122
context.ReportResult(
BuildCheckResult
.Create(
MockBuildCheckRegistrationContext.cs (2)
16
public List<
BuildCheckResult
> Results { get; } = new();
57
private void ResultHandler(CheckWrapper wrapper, ICheckContext context, CheckConfigurationEffective[] configs,
BuildCheckResult
result)
SharedOutputPathCheck_Tests.cs (1)
132
foreach (
var
result in _registrationContext.Results)
TestAssets\CustomCheck\Check1.cs (1)
46
context.ReportResult(
BuildCheckResult
.Create(
TestAssets\CustomCheck\Check2.cs (1)
35
context.ReportResult(
BuildCheckResult
.Create(
TestAssets\CustomCheck2\Check3.cs (1)
35
context.ReportResult(
BuildCheckResult
.Create(
TestAssets\ErrorCustomCheck\ErrorOnInitializeCheck.cs (1)
37
context.ReportResult(
BuildCheckResult
.Create(
TestAssets\ErrorCustomCheck\ErrorWhenRegisteringActions.cs (1)
37
context.ReportResult(
BuildCheckResult
.Create(