msbuild
msbuild copied to clipboard
pass location information to EventArgs
Fixes #10529
Context
Changes Made
split IMSBuildElementLocation to separate file and added it to Framework .dll (kept in Microsoft.Build.BackEnd namespace, that should be moved eventually if desirable https://github.com/dotnet/msbuild/issues/10544 ) removed location from BuildCheckResult.FormatMessage, location is logged via the filled parameters by Build*EventArgs
Testing
Notes
Before
After
We should check the appearance of the suggestion level as well, but otherwise this feels ready to go!
It would be nice to have some tests to check if the location is being passed right from the check to the output.
I moved it to a separate ticket: https://github.com/dotnet/msbuild/issues/10581