Added TaskAssemblyLocation to TaskStartedEventArgs2#772
Conversation
|
The reader looks good! Let's also update the BuildEventArgsWriter (same changes as in the MSBuild repo) |
|
Oh, also need to update this place: Currently we compute the Task assembly by parsing Using Task messages here: MSBuildStructuredLog/src/StructuredLogger/Construction/MessageProcessor.cs Lines 131 to 139 in 7e1ca2a We need to first take TaskStartedEventArgs2.TaskAssemblyLocation if that's not null or empty, otherwise fall back to the existing logic. |
|
Also do you have a binlog that exercises a new resource string that you added? Does that string end up in the binlog? |
|
Yes, it did :) I will update the MessageProcessor. I wanted to ask where can I find the code for populating Assembly node inside task, but you was faster :) |
|
Now just the writer please ;) |
|
@MichalPavlik could you please include the changes in our copy of BuildEventArgsWriter.cs as well? |
|
@MichalPavlik also please make sure the test |
|
Sorry, I had vacation. I will do it today. |
|
Perhaps @JanKrivanek can help here, he did a lot of work in making sure the format is roundtrippable. |
|
The nullref exception is more concerning that the newline format - I'd suggest looking into that |
|
Test result was misleading :) The root cause was in writer - test is using MSBuild to build project, but it knows nothing about |
|
Lets make sure the test is catching the similar problems for the future: MichalPavlik#1 (I do not have write access to your fork @MichalPavlik - so I created this as a PR to your branch :)) |
Explicitly verify there are no errors in the build nor during reading
|
Great, thanks :) |

Fixes #771