Timeline for How to go about version numbers in a C# solution
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 7, 2024 at 19:30 | answer | added | Ewan | timeline score: 1 | |
| Feb 7, 2024 at 15:15 | comment | added | Craig | Assembly version should be roughly an API version, it wouldn't necessarily bump when a change is made, only if clients should need to rebuild (and update references). Assembly file version should bump on every change. If you have an SDK-style project, the assembly info can be in the project file and managed by the MSBuild command line. If you have AssemblyInfo.cs, then you can use the WriteCodeFragment task in MSBuild to write changing assembly info (like version numbers) into an autogenerated fragment to include in the project. | |
| Feb 6, 2024 at 19:17 | comment | added | jav | @J_H mine is a private repository and we do not use the GitHub Issues. That is why using the commit messages for bumping the version and creating a new installation package suits me better. | |
| Feb 6, 2024 at 19:15 | comment | added | jav | @Ewan I didn't know that. I guess that works also with "dotnet publish" which is what I use within my Wix Toolset authoring for creating the installation package. | |
| Feb 6, 2024 at 18:47 | review | Close votes | |||
| Feb 12, 2024 at 3:03 | |||||
| Feb 6, 2024 at 18:32 | comment | added | Ewan | you can compile with dotnet build -p:Version=1.2.3.4 which will overwrite the version in the project file | |
| Feb 6, 2024 at 18:28 | comment | added | J_H | A common approach is to obtain serial numbers from GitHub Issues, and start each feature branch name with an issue number. Then the PR is all about closing out a specific issue. I have seen this work well, both with repos that use Conventional Commits and with repos that don't. One of the things PR edits are responsible for is bumping the SemVer as appropriate. But I see you are headed down quite a different path, more power to you. | |
| S Feb 6, 2024 at 17:05 | review | First questions | |||
| Feb 7, 2024 at 10:16 | |||||
| S Feb 6, 2024 at 17:05 | history | asked | jav | CC BY-SA 4.0 |