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

Log an error if imported in Directory.Build.props #322

Merged

Conversation

jeffkl
Copy link
Contributor

@jeffkl jeffkl commented Nov 25, 2021

Since the MSBuild Update gesture is used, Microsoft.Build.CentralPackageVersions must be included in Directory.Build.targets not Directory.Build.props. This change logs an error so that users will know when they've made this mistake.

Fixes #179

Since the MSBuild Update gesture is used, Microsoft.Build.CentralPackageVersions must be included in Directory.Build.targets not Directory.Build.props.  This change logs an error so that users will know when they've made this mistake.

Fixes microsoft#179
@jeffkl jeffkl merged commit af63eab into microsoft:main Nov 25, 2021
@jeffkl jeffkl deleted the error-if-imported-in-directory-build-props branch November 25, 2021 21:00
jeffkl added a commit to jeffkl/MSBuildSdks that referenced this pull request Dec 2, 2021
…om import pattern.

microsoft#322 didn't take into account that if Microsoft.Build.CentralPackageVersions is imported in a custom way.  This change now makes sure it was imported after Microsoft.Common.targets

Fixes microsoft#324
jeffkl added a commit that referenced this pull request Dec 2, 2021
…om import pattern. (#325)

#322 didn't take into account that if Microsoft.Build.CentralPackageVersions is imported in a custom way.  This change now makes sure it was imported after Microsoft.Common.targets

Fixes #324
jeffkl added a commit to jeffkl/MSBuildSdks that referenced this pull request Dec 3, 2021
jeffkl added a commit that referenced this pull request Dec 3, 2021
…g a custom import pattern" (#327)

* Revert "Fix issue with CentralPackageVersions logging error when using a custom import pattern. (#325)"

This reverts commit 99a3dc3.

* Revert "Log an error if imported in Directory.Build.props (#322)"

This reverts commit af63eab.

Reopens #324 and #179
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

MicrosoftCommonPropsHasBeenImported is set after importing Directory.Build.props
1 participant