Repository navigation
Add ability to set a help link for errors/warnings - #5488
Conversation
|
Looks like the macOS build on Mono is failing due to a single test failure. Looking at the test it doesn't seem related to my changes, so not sure what's going on there. The Windows Full Release build seems to be failing due to mismatches with the reference assemblies, which makes sense since I've expanded the existing API. What would be the right course of action here though? Should we also changes the reference assemblies? |
rainersigwald
left a comment
There was a problem hiding this comment.
Thanks for the contribution! This looks good overall but I have some feedback.
If you do a build locally, it should update the reference source with the additions you've made. Add those to your PR. |
|
Looks like the reference assemblies are only updated when building on Windows. Fixed that now. Hopefully that will fix the build. |
|
Looks like the build still breaks, although I'm not sure it is actually related to my changes. Any idea what's going on here? |
Sorry, I thought we had fixed that! Thanks for switching OSes :)
With the build log Should definitely not be you. I'm rerunning that leg. @Forgind, recognize this? |
rainersigwald
left a comment
There was a problem hiding this comment.
I think this is looking good. Can you add some test coverage?
Specifically:
- add tiny calls here (and for warning):
- edit or extend around here to use the new field and validate that it survives serialization (also for error):
|
Added the tests as instructed. |
|
Is there anything I can do to move this along? |
I think we're currently waiting for @terrajobst to chime in. I can ping him offline. |
|
Is this still waiting for an API review from @terrajobst? |
|
I think this is ready to go now, but feel free to review it again. |
|
Are we ready to merge this? |
|
It looks like BuildMessageEventArgs/CriticalBuildMessageEventArgs didn't get a HelpLink. Was that intentional? |
|
@davkean Not really. I just approached it from the |
|
@jmezach Critical Messages can be logged inside a task without needing a specific Info task. We treat error/warning/messages the same for HelpKeyword, and had to handle HelpLink differently because its not on the base. |
|
@davkean I don't mind moving things to a base class, but as far as I can see the only common base class for all those types ( |
This reverts commit 8343d63.
As discussed in #4029 (see this comment) I've added the ability to set a help link for both the Error and Warning tasks. This would allow authors of MSBuild targets to issue warnings and/or errors and point users to some page describing more details about the error/warning. Obviously these would need to show up in the IDE somewhere, but I'm hoping that @davkean can take care of that. I think I've done everything that needs to be done on the MSBuild side of things, but this is my first PR here so I'm not entirely sure.