-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Properties and items aren't logged at evaluation for dotnet build
#23248
Comments
|
This needs to be opted into IEventSource4:
|
I saw six loggers under debugger, any idea if there are more? |
AFAIK this is the only default addition:
I also pointed you to the wrong implementation of the logger offline--we pass both the distributed and central logger, but it seems only the central logger needs to opt in for everything to work. |
Yes, seems reasonable: I saw 3 loggers on the build parameters, I'm guessing those are: Console, BinaryLogger and this logger. I saw 6 loggers on the LoggingService, and it means one central, one forwarding for each of those?? So it adds up. When we have a build of dotnet with this change, a simple way to test is just build any project with console and /bl and see if the evaluations have properties and items: |
Amazing! I'm also thinking that currently if there are unenlightened loggers, there's no way to force the new behavior. We should respect the environment variable if set, and force it to true regardless of which loggers. This would give us a way to turn it on via an environment variable as a workaround. Would have really saved my bacon right about now :) |
I can PR this in a sec |
Yeah, I'd be on board for that. |
Unlike MSBuild, when you run
dotnet build
, something is preventing the new behavior of logging properties and items after evaluation.As a result we get legacy broken behavior where some properties and items are logged for some projects at ProjectStarted, but not others, and none at all are logged at evaluation.
This is very bad and we should fix this soon.
The text was updated successfully, but these errors were encountered: