Skip to content

(maint) Move common project properties to Directory.Build.props #662

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

Merged
merged 2 commits into from
Mar 13, 2025

Conversation

arturcic
Copy link
Member

This should improve the maintenance of the common properties. When we upgrade to .net80 and .net90, that will be much simpler

@arturcic arturcic requested a review from gep13 January 10, 2025 21:29
@arturcic arturcic force-pushed the feature/common-props branch from a4eba97 to 943405a Compare January 10, 2025 21:47
@arturcic arturcic marked this pull request as ready for review January 10, 2025 21:48
@arturcic
Copy link
Member Author

@gep13 updated, please have a new look

@arturcic
Copy link
Member Author

would be nice if you can give it locally a try as well.

@gep13 gep13 added the Build label Jan 13, 2025
@gep13 gep13 added this to the 0.19.0 milestone Jan 13, 2025
Copy link
Member

@gep13 gep13 left a comment

Choose a reason for hiding this comment

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

LGTM!

@gep13
Copy link
Member

gep13 commented Jan 13, 2025

@arturcic the changes themselves here look good, but something is going on with the CI build, that I will need to take a look at. Leave it with me, and I will get back to you if/when I find something.

@arturcic
Copy link
Member Author

@arturcic the changes themselves here look good, but something is going on with the CI build, that I will need to take a look at. Leave it with me, and I will get back to you if/when I find something.

Sure,

@gep13
Copy link
Member

gep13 commented Feb 20, 2025

@arturcic apologies on not getting back to you sooner about this PR, I have only just now had a chance to look at this.

Unfortunately, we are not going to be able to move forward with merging this PR, even though I can see the benefit of it 😢

Cake.Recipe currently relies on the Target Frameworks being defined within the csproj file, as can be seen here:

https://github.com/cake-contrib/Cake.Recipe/blob/develop/Source/Cake.Recipe/Content/build.cake#L267-L277

Since these have been moved into the common file, the csproj parsing that is currently done can't find that information, and as a result, the dotnet publish step is not completed, and therefore the files are not ready for adding into the necessary packages, etc.

To fix this, we would need to update Cake.Recipe to additionally parse the common file looking for targetframworks, if none can be found in the csproj file.

@gep13 gep13 added the Blocked label Feb 20, 2025
@gep13
Copy link
Member

gep13 commented Feb 20, 2025

For now, I am going to remove this PR from the 0.19.0 milestone.

@gep13 gep13 removed this from the 0.19.0 milestone Feb 20, 2025
@arturcic arturcic force-pushed the feature/common-props branch from 943405a to 6c7a331 Compare March 12, 2025 06:18
@arturcic arturcic force-pushed the feature/common-props branch from 6c7a331 to 824a53d Compare March 12, 2025 06:19
@arturcic
Copy link
Member Author

hey @gep13 I guess this can be merged, I moved back to the csproj only the TargetFrameworks, but I kept all the other common properties.

@gep13 gep13 changed the title move common project properties to Directory.Build.props (maint) Move common project properties to Directory.Build.props Mar 13, 2025
@gep13 gep13 added this to the 0.20.0 milestone Mar 13, 2025
@gep13 gep13 removed the Blocked label Mar 13, 2025
Copy link
Member

@gep13 gep13 left a comment

Choose a reason for hiding this comment

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

LGTM!

@gep13
Copy link
Member

gep13 commented Mar 13, 2025

@arturcic thanks for getting this PR uppdated! At some point, although I can't say when, it would be great to be able to use the Directory.Build.props for the TargetFrameworks as well, but as it is currently written, the build process can't make use of it 😢

@gep13 gep13 merged commit a33802c into GitTools:develop Mar 13, 2025
2 checks passed
@arturcic arturcic deleted the feature/common-props branch April 3, 2025 08:18
@gittools-bot
Copy link
Contributor

🎉 This issue has been resolved in version 0.20.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

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.

3 participants