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

C#: Refactor common msbuild properties #16521

Merged
merged 3 commits into from
May 22, 2024

Conversation

tamasvajk
Copy link
Contributor

@tamasvajk tamasvajk commented May 17, 2024

This PR is moving the common MsBuild properties to a top level Directory.Build.props file.

@tamasvajk tamasvajk force-pushed the impr/refactor-common-csproj-prop branch from 86aad27 to cecaa0d Compare May 21, 2024 06:55
@@ -0,0 +1,6 @@
<Project>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is not strictly needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

If this is not strictly needed, are the changes in the stub generator not strictly needed either (I suppose this file currently has the same effect for stubs used by the QL tests as the project local Directory.Build.props that will be generated going forward)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not strictly needed, because when we run integration tests through sembuild, we're moving the files to the targets folder and then the settings in Directory.Build.props is not going to be inherited.

At the same time, the stub generator changes are needed, because we're creating a stubs_output subfolder in the csharp directory, so there the Directory.Build.props would be inherited.

@tamasvajk tamasvajk marked this pull request as ready for review May 21, 2024 07:40
@tamasvajk tamasvajk requested review from a team as code owners May 21, 2024 07:40
Copy link
Contributor

@michaelnebel michaelnebel 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 to me!
Some minor question on parts of the logic.

@@ -0,0 +1,6 @@
<Project>
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is not strictly needed, are the changes in the stub generator not strictly needed either (I suppose this file currently has the same effect for stubs used by the QL tests as the project local Directory.Build.props that will be generated going forward)?

@tamasvajk tamasvajk merged commit c9f4685 into github:main May 22, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants