-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add C# project support #36
Conversation
I have no idea about csproj, but I am positive about supporting it 👍 |
I'm not sure if this code will really work. Sorry to take your time., but can you provide some sort of sample project where we can verify that this works correctly? |
In the case of bump-request/src/changeVersion.ts Lines 42 to 49 in 8f0fb42
(btw, this is totally unrelated to this pull request, but for some reason this |
Yeah, of course! I'll create a sample repository.
There is opt-in lockfile. When we define ref: https://learn.microsoft.com/ja-jp/azure/devops/pipelines/artifacts/caching-nuget?view=azure-devops |
@r7kamura I created a sample repository. Could you check it? https://github.com/supermomonga/bump-request_CSharpDemo I created a demo branch and apply temporally change to
PRs created by bump-reqeust workflow
|
Looks generally good.
I made the above comment because I thought it was supposed to include its own version in packages.lock.json, like Gemfile.lock, so I thought we needed to run some command to update the embedded version. But in fact, that is not how packages.lock.json works, is it? If so, there may be no benefit to running |
Ah, I got your point now.
Yes, you right. Just to be sure, I also checked the specifications for NuGet Package (equivalent to a gem in Ruby), but it seems that the version of the library itself is not used. I removed |
Just released v0.5.0, thank you! |
@r7kamura Thanks ✨ |
This Pull Request adds support for C# projects (.csproj files).
.csproj files may contain not only the
Version
attribute but also theVersionPrefix
andVersionSuffix
. TheseVersion
,VersionPrefix
, andVersionSuffix
tags are interdependent, and when dealing with prerelease versions (e.g.,v0.0.1-beta.1
), all of these attributes must be considered. However, as my understand,bump-request
action is currently not concerned with prerelease versions. so this Pull Request only handles theVersion
attribute.ref: