msbuild
msbuild copied to clipboard
Add e2e test for custom analyzer rules
Context
In order to cover the full flow, in this tests we:
- Build the analyzer project(s) and package it/them into a NuGet package(s).
- Include a reference to the local package containing the rule(s) in the project that needs analysis (AnalysisCandidate) using a nuget.config file.
- Build AnalysisCandidate and verify the output for messages generated by the custom analyzers related to detecting custom rules. The structure of the rules was generated using: https://github.com/dotnet/msbuild/tree/main/template_feed/Microsoft.AnalyzerTemplate
- instantiate missed BuildEventContext in BuildCheckConnectorLogger.cs
I like the idea of having a full-strength end-to-end-via-package test, but it feels very early for that to be checked in, and the package construction stuff is low-pri for me. Is now the right time?
Let's discuss the concerns offline (@YuliiaKovalova, @rainersigwald) - I want to understand them better