Comments (4)
The whole purpose of NetRevisionTool is to not touch the file at all when compilation is finished so that no changes appear to the version control. You are proposing to break this rule and make permanent changes to the file.
Also, this would lead to different versions each time you build the project, which can be as often as you want. I perform builds every now and then during coding to check where new errors appear. I also build automatically before committing. The version number would then no longer deterministically depend on the source, time or history alone. Separate build servers that only check out a read-only copy of the source would add their share of the confusion to it.
If this would be implemented, additional care must be taken of the current file encoding. Since this is not relevant for the build process, the temporarily modified files may use a different encoding than the original source file. This would be another change that's exposed to version control. Albeit probably only once.
from netrevisiontool.
this would lead to different versions each time you build the project
My point is:
- Build counts are common for version strings
- A user sees whether a successive version is available without the need for the developer to care about small third-place version number changes
If you build automatically before committing,
a change happening before the commit wouldn't be bad. Sure, in other cases a developer would have to remember the {sernum:...}
setting and take it into account for the workflow.
If this would be implemented
Are you unsure whether to do it or not?
from netrevisiontool.
Build counts are common for version strings
Yes, and most of them depend on the date.
without the need for the developer to care about small third-place version number changes
This is in fact all NetRevisionTool exists for. And it provides plenty of methods to do just that. For example a time-based number in several formats, or a commit counter (similar to SVN revision number), or a build/commit date in several formats. Did you notice those? All of them work non-destructive by deriving the version information only from their environment without changing the environment.
Are you unsure whether to do it or not?
Yes I am.
from netrevisiontool.
For example a time-based number in several formats, or a commit counter (similar to SVN revision number), or a build/commit date in several formats. Did you notice those?
Yes. There are already good options! I'll see whether time-based values are also okay for me.
from netrevisiontool.
Related Issues (13)
- Blog post HOT 1
- Supporting SmartGit HOT 1
- Time Zone HOT 5
- Possible Bug HOT 3
- Repo name HOT 3
- Support ability to include commit URL HOT 7
- Support .NET Core projects HOT 2
- Exited with code 100 HOT 2
- Create additional file instead of patching AssemblyInfo.cs HOT 4
- Create NuGet package HOT 1
- Empty commit ID, missing output values. HOT 5
- Consider adding {mname} HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netrevisiontool.