Skip to content

Conversation

@KirillOsenkov
Copy link
Member

When evaluating the generated .sln.metaproj, we do pass a valid submissionId, but then we don't use it when creating the BuildEventContext used by the ProjectInstance to log evaluation events. So evaluation logging events end up having SubmissionId == -1, and thus the loggers registered with the MuxLogger in the IDE do not get the evaluation events.

Fixes #9469

I've built a bootstrap MSBuild and validated that the events show up in the log now:

Before:
image

After:
image

…erator

When evaluating the generated .sln.metaproj, we do pass a valid submissionId, but then we don't use it when creating the BuildEventContext used by the ProjectInstance to log evaluation events. So evaluation logging events end up having SubmissionId == -1, and thus the loggers registered with the MuxLogger in the IDE do not get the evaluation events.

Fixes #9469
…lid SubmissionId

This way Metaproject generated and other events get properly routed to MuxLogger and other loggers that care about the SubmissionId.
@KirillOsenkov
Copy link
Member Author

Added another commit to ensure that Metaproject generated events also get a valid SubmissionId and get routed properly:
image

@rokonec rokonec self-assigned this Dec 6, 2023
@rokonec rokonec self-requested a review December 6, 2023 12:41
@rokonec rokonec assigned KirillOsenkov and unassigned rokonec Dec 11, 2023
@rainersigwald
Copy link
Member

This looks to me like a bugfix we could fit in 17.9--anybody disagree?

@rainersigwald rainersigwald changed the base branch from main to vs17.9 December 18, 2023 17:18
@rainersigwald rainersigwald enabled auto-merge (squash) December 18, 2023 17:19
@rainersigwald rainersigwald merged commit 4ac8d42 into vs17.9 Dec 18, 2023
@rainersigwald rainersigwald deleted the dev/kirillo/metaprojSubmissionId branch December 18, 2023 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SubmissionId not passed to evaluation of .sln.metaproj

4 participants