Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass submissionId to the BuildEventContext used by SolutionProjectGenerator #9470

Merged
merged 2 commits into from
Dec 18, 2023

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
8 checks passed
@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
3 participants