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

move versioning logic into csproj & simplify build commands #498

Merged
merged 1 commit into from
Dec 27, 2024
Merged

Conversation

cfbao
Copy link
Member

@cfbao cfbao commented Dec 25, 2024

No description provided.

@github-actions github-actions bot added size/M A medium-sized PR. and removed size/XS A very small PR - good job! labels Dec 26, 2024
@cfbao cfbao changed the title set IncludeSourceRevisionInInformationalVersion in csproj move some versioning logic into csproj & simplify build commands Dec 26, 2024
Comment on lines 88 to +89
env:
RELEASE_TAG: ${{ needs.create_release.outputs.release_tag }}
Version: ${{ needs.create_release.outputs.version }}
Copy link
Member Author

Choose a reason for hiding this comment

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

Default MSBuild behaviour: if there's an environment variable named Version, its value will be automatically picked up as the property Version.
https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-properties#environment-properties

@cfbao cfbao changed the title move some versioning logic into csproj & simplify build commands move versioning logic into csproj & simplify build commands Dec 27, 2024
@cfbao cfbao marked this pull request as ready for review December 27, 2024 20:04
@cfbao cfbao requested a review from a team as a code owner December 27, 2024 20:04
@cfbao cfbao merged commit 159e178 into main Dec 27, 2024
8 checks passed
@cfbao cfbao deleted the csproj branch December 27, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants