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

feat: prepare 1.5.1.1 release #191

Merged
merged 1 commit into from
Mar 22, 2023
Merged

Conversation

CumpsD
Copy link
Member

@CumpsD CumpsD commented Mar 22, 2023

Prepare the 1.5.1.1 release to bump npgsql version

  • Added release notes
  • Tested build script

Did some minor formatting changes while at it, to keep the Build.Props clean since FAKE likes to rewrite the entire file when it touches 1 thing

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) March 22, 2023 17:05
Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

What's the generated.props for?

Copy link
Member

Choose a reason for hiding this comment

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

What's this file for?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's where FAKE writes the version number and release notes in. The "issue" is FAKE likes to overwrite and reformat the entire file when it writes into it. So this file is especially for FAKE, and is referenced from Build.Props (like I did in the Persistence Sql repo)

Copy link
Member

Choose a reason for hiding this comment

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

interesting

Copy link
Member Author

Choose a reason for hiding this comment

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

It's referenced with:
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Generated.props', '$(MSBuildThisFileDirectory)'))" />

and FAKE writes to it with:

XmlPokeInnerText "./src/Directory.Generated.props" "//Project/PropertyGroup/VersionPrefix" releaseNotes.AssemblyVersion
XmlPokeInnerText "./src/Directory.Generated.props" "//Project/PropertyGroup/PackageReleaseNotes" (releaseNotes.Notes |> String.concat "\n")

@Aaronontheweb Aaronontheweb merged commit daec556 into akkadotnet:dev Mar 22, 2023
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