Skip to content

Clean up logging from NoTargets projects#300

Merged
jeffkl merged 4 commits intomicrosoft:mainfrom
AArnott:patch-1
Nov 4, 2021
Merged

Clean up logging from NoTargets projects#300
jeffkl merged 4 commits intomicrosoft:mainfrom
AArnott:patch-1

Conversation

@AArnott
Copy link
Copy Markdown
Member

@AArnott AArnott commented Oct 9, 2021

A NoTargets project will still log (with high importance) something like:

MyProject ->

Leaving a blank where the primary output would typically go. This looks weird. So this change removes that from being logged. It also disables (because it's the same property that controls it) copying of the primary output that we didn't build.

A NoTargets project will still log (with high importance) something like:

> MyProject ->

Leaving a blank where the primary output would typically go. This looks weird. So this change removes that from being logged. It also disables (because it's the same property that controls it) copying of the primary output that we didn't build.
Copy link
Copy Markdown
Contributor

@jeffkl jeffkl left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for the contribution. Can you please add the condition and add the new property to this unit test so it doesn't regress in future commits:

public void PropertiesHaveExpectedValues(string propertyName, string expectedValue)

Comment thread src/NoTargets/Sdk/Sdk.props Outdated
@jeffkl jeffkl self-assigned this Oct 11, 2021
Copy link
Copy Markdown
Contributor

@jeffkl jeffkl left a comment

Choose a reason for hiding this comment

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

Sorry for the delay, GitHub didn't notify me that changes were pushed for some reason.

Thank you for the contribution!

@jeffkl jeffkl enabled auto-merge (squash) November 4, 2021 22:02
@AArnott
Copy link
Copy Markdown
Member Author

AArnott commented Nov 4, 2021

@jeffkl Looks like it failed due to a network outage.

@jeffkl jeffkl merged commit 5029011 into microsoft:main Nov 4, 2021
@AArnott AArnott deleted the patch-1 branch November 4, 2021 23:42
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.

2 participants