Skip to content

Conversation

@laurenprinn
Copy link
Contributor

The console logger is adding an additional feature where users can define properties to be printed in error/warning messages by editing the Item outputProperties. This PR will have outputProperties default to at least TargetFrameworks if the project is multitargeted.

dotnet/msbuild#5414

…rks if the project is multitargetted. Is used by console logger
@laurenprinn laurenprinn marked this pull request as ready for review June 11, 2020 20:55
Copy link
Member

@dsplaisted dsplaisted left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to add test coverage for this. That would require waiting for the MSBuild change to go in and flow to this repo.

rainersigwald
rainersigwald previously approved these changes Jul 23, 2020
@marcpopMSFT
Copy link
Member

@laurenprinn has the msbuild change flowed in yet so you can add tests?

@laurenprinn
Copy link
Contributor Author

@laurenprinn Lauren Prinn Intern has the msbuild change flowed in yet so you can add tests?

They were. I'm working on writing tests.

Lauren Prinn added 3 commits July 30, 2020 16:24
:qd
Merge remote-tracking branch 'upstream/master' into outputProperties_itemgroup
Base automatically changed from master to main March 18, 2021 21:05
@marcpopMSFT
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

rokonec pushed a commit to dotnet/msbuild that referenced this pull request Feb 24, 2022
…#7297)

* Don't space first ProjectConfigurationDescription
* Log project-file messages with disambiguator
* Improve diagnosability of ProcessConsoleLoggerSwitches
* Default loggers ProjectConfigurationDescription

dotnet/sdk#12030 discovered that the .NET SDK's default build process
didn't log TargetFramework details for normal projects.

This turned out to be because the .NET SDK attaches a custom logger,
which caused MSBuild to set up a ConfigurableForwardingLogger in front
of the ConsoleLogger that forwarded based on verbosity which wasn't high
enough to include the ProjectEvaluationFinished event.

Pass a new ConfigurableForwardingLogger parameter from the command line
handler to instruct it to pass those events even at lower verbosities.
@rainersigwald rainersigwald changed the base branch from release/6.0.3xx to main May 9, 2022 19:38
Also make it more durable by avoiding specifying old .NET Core versions.
@rainersigwald
Copy link
Member

Tests are currently failing because the MSBuild.exe used for full-framework tests don't have dotnet/msbuild#7297 yet. They should pick it up in the next engineering services rollout, I think.

@Forgind
Copy link
Contributor

Forgind commented May 27, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rainersigwald rainersigwald marked this pull request as ready for review June 6, 2022 19:52
Copy link
Member

@rainersigwald rainersigwald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dsplaisted / @marcpopMSFT I think this is good to go now. One of y'all want to take a look?

This could go to 6.0.4xx, but I think we should just take it to the 7 previews to get better preview coverage and feedback before wide deployment.

Copy link
Contributor

@Nirmal4G Nirmal4G left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seem like it's going to break anything so adding it to 6.0.4xx seems okay with me!

@marcpopMSFT
Copy link
Member

@rainersigwald am I correct that the only non-formatting changes in this are the test and the ProjectConfigurationDescription ItemGroup? Just wanted to make sure there wasn't anything else to review. I could be convinced either way on 6.0.4xx as the PR's been open a long time so not really a rush.

@rainersigwald
Copy link
Member

am I correct that the only non-formatting changes

Grr, sorry! I didn't realize I'd been reviewing with ignore whitespace. I'll fix those.

in this are the test and the ProjectConfigurationDescription ItemGroup? Just wanted to make sure there wasn't anything else to review. I could be convinced either way on 6.0.4xx as the PR's been open a long time so not really a rush.

Correct.

I feel pretty strongly we shouldn't put this in 6.0.400--I think it might break GitHub Actions log parsing: actions/setup-dotnet#97 will need to come back.

@Nirmal4G
Copy link
Contributor

Nirmal4G commented Jun 8, 2022

Didn't know that actions do reading from console. What about VS Integration and Pipeline tasks (VSBuild, DotNetCLI)? Do we have to notify them as well?

@rainersigwald
Copy link
Member

What about VS Integration and Pipeline tasks (VSBuild, DotNetCLI)? Do we have to notify them as well?

We do not. The Azure DevOps tasks that wrap MSBuild inject a custom logger rather than reading stdout.

@rainersigwald
Copy link
Member

The last tests failed because they ran on a machine with Microsoft (R) Build Engine version 17.2.0-preview-22116-01+7d926d7ab for .NET Framework, which I thought had been updated to GA but maybe not consistently? If it fails again we'll probably have to wait on this again.

@rainersigwald
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rainersigwald
Copy link
Member

@marcpopMSFT I think this is ready to go in, unless we think it's too late for 7.0.100.

@marcpopMSFT
Copy link
Member

I think we still have time in 7.0.100 as we're not yet locking down.

@marcpopMSFT marcpopMSFT merged commit c4e3836 into dotnet:main Jul 27, 2022
@vcsjones
Copy link
Member

vcsjones commented Aug 24, 2022

Pardon the noisy comment. Just wanted to drop in and say this is a major quality of life improvement for me working on dotnet/runtime.

Thanks y'all for adding this!

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.

8 participants