msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

Add a notification about BuildCheck enabled for the current build

Open YuliiaKovalova opened this issue 1 year ago • 2 comments

Fixes #10135

Context

The users have to be notified if BuildCheck got invoked during the build.

Changes Made

The message got logged once the logger service is available and custom analyzers are defiled: image

YuliiaKovalova avatar Jun 18 '24 19:06 YuliiaKovalova

The original requirement from the security review was to be able to locate all the check names (and respective package names that contained them) that were enabled in the build, despite the checks might not have produced any outputs.

Sample simplisitc possible output:

The BuildCheck is enabled for this build. Following Checks were enabled on at least one of the projects:
| name | source |
| SharedOutputPathsCheck | builtin |
| ContosoProjectStructureCheck | Contoso.BuildChecks 0.0.2 |

JanKrivanek avatar Jun 18 '24 20:06 JanKrivanek

The original requirement from the security review was to be able to locate all the check names (and respective package names that contained them) that were enabled in the build, despite the checks might not have produced any outputs.

Sample simplisitc possible output:

The BuildCheck is enabled for this build. Following Checks were enabled on at least one of the projects:
| name | source |
| SharedOutputPathsCheck | builtin |
| ContosoProjectStructureCheck | Contoso.BuildChecks 0.0.2 |

done, in a different way.

YuliiaKovalova avatar Jun 19 '24 15:06 YuliiaKovalova