Questions tagged [auto-versioning]
52 questions
1147
votes
57 answers
How to force browsers to reload cached CSS and JS files?
I have noticed that some browsers (in particular, Firefox and Opera) are very zealous in using cached copies of .css and .js files, even between browser sessions. This leads to a problem when you update one of these files, but the user's browser…

Kip
- 107,154
- 87
- 232
- 265
44
votes
10 answers
Automatic versioning of Android build using git describe with Gradle
I have searched extensively, but likely due to the newness of Android Studio and Gradle. I haven't found any description of how to do this. I want to do basically exactly what is described in this post, but with Android Studio, Gradle and Windows…

Mike Yount
- 443
- 1
- 5
- 8
19
votes
4 answers
How to derive application build version string with Git's `describe` command?
I want to compose application build version that is automatically derived from the Git branch name I am on (when building) and the number of commits since the branch has diverged. I believe this will be unique for any commit in my Git repository?…

Armen Michaeli
- 8,625
- 8
- 58
- 95
16
votes
6 answers
Autoversioning CSS/JS in ASP.NET MVC?
So I was reading this stackoverflow post about "autoversioning" in ASP.NET MVC for CSS/JS files and was wondering what the "best" strategy is to do this.
The solution provided inserts an assembly number - which means everytime you publish - it will…

Tom
- 161
- 1
- 1
- 4
14
votes
2 answers
WebDAV auto-versioning in Git or Hg or any modern VCS
I just recently learned of SVN's auto-versioning feature for WebDAV. Although I understand this is not replacement for proper versioning, with messages documenting change sets, it strikes me as a solid and safe replacement to Dropbox (minus nice…

Marcus P S
- 191
- 2
- 6
9
votes
3 answers
Auto-versioning of static content with JBoss
As per the Q&A here, I'd like to implement a similar auto-versioning system for a web app running in JBoss 5. Is there anything already out there to do this sort of thing, or will I need to write something myself? To be clear: I am not using…

Matt Ball
- 354,903
- 100
- 647
- 710
7
votes
1 answer
How to change assembly info in asp.net core?
I want to versioning my asp.net core app.
I followed this link: http://www.matthiaseinig.de/2013/05/20/auto-generate-fileversion-for-all-projects-in-a-solution-with-t4/ , but I want to remove project assembly info, but I didn't find it.
How to…

Alex
- 1,013
- 1
- 13
- 27
7
votes
2 answers
How to Add an Auto Version Number in Latex?
This question Add a version number to the title of a LaTeX document spurred my curiosity:
How do you add an auto-version number in Latex?
( So one is not doing this: {\bf Version:} 1.2 and then later {\bf Version:} 1.2 1.3) ?

rlb.usa
- 14,942
- 16
- 80
- 128
5
votes
1 answer
Are the new Delphi XE2 autogenerated build numbers linked to 1.1.2000 00:00:00?
In Delphi XE2 the automatically generated build numbers functionality now uses some kind of date and time generated values, like this:
2.4.4386.838
The last two numbers change each time you build and are based on the current date and time:
Major = 2…

Gad D Lord
- 6,620
- 12
- 60
- 106
5
votes
1 answer
How to make android:versionName in AndroidManifest.xml changed automatically in eclipse?
I want to change android:versionName each time when I release apk.
Are there any eclipse plugin or some other ways that can help it automatically change along with my code's compilation?
For example,
today is 10/09/2011, I want the value…

jiangyan.lily
- 932
- 1
- 8
- 16
5
votes
3 answers
How to commit subversion revision with every commit in order to refer between two repositories
Consider software spread in two separate repositories, Pub and Priv. Pub repository is public. Priv is closed. An continuous integration server builds both Pub and Priv when either side changes. It then creates downloadable binaries from Priv that…

Wayne
- 51
- 2
5
votes
2 answers
Auto-versioning CSS/JS in nginx
I have a setup where nginx is serving all static content (CSS/JS).
Our problem is that when we update the static content the browser doesn't necessarily update them immediately, causing problems when we're pushing new versions.
I would like to have…

Niklas9
- 8,816
- 8
- 37
- 60
4
votes
3 answers
Forcing the browser to reload css/js only if they have changed
There are a lot of questions and answers on SO related to my problem [I want the browser to cache js/css forever. During a new release if some of the js/css files have been updated, the browser should reload and cache them.]
This solution seemed…

TJ-
- 14,085
- 12
- 59
- 90
3
votes
1 answer
Configure Nginx to ignore a path in url
My website is at /root/website/, in it there is a folder static for static files, when the user visit: /static/dfd99a5/xxx.js, I wish to serve /root/website/static/xxx.js, how can I do this in nginx?

wong2
- 34,358
- 48
- 134
- 179
3
votes
1 answer
In a Golang application, how to embed a version in a other package than main?
Inspired by this SO question I wanted to use the same mechanism to embed a version number in my golang application. However I'm using the Cobra command line parser and want to have a version sub-command. This leads to the following directory and…

Bas Bossink
- 9,388
- 4
- 41
- 53