versioning

How to integrate NSIS with a build system and supporting versioning

I have a nsis script to create an installer package of a tool in .NET, and works fine. The problem is that I want to integrate it in my build system (currently using NANT, but migrating to rake using ironruby) The version for the product is stored in a txt file which is read to generate the assemblyinfo, currently the build system au...

Deriving application build version from `git describe` - how to get a relatively straightforward string?

I want to compose application build version that is automatically derived from GIT branch name I am on (when building) and the number of commits since the branch "start". I believe this will be unique for any commit in my GIT repository? Branch names are unique, and commits are linked to each other along a branch? If and when I tag a com...

XML schema compatibility strategy

I work with an application that uses a large set of xml interfaces for integration and data import / export. We use JAXB to map from those interfaces to our domain object model. One challenge we frequently face is how to deal with the need to change to the these interfaces during the course of a project in the face of new requirements. ...

WCF Data Service Versioning with EF

I have multiple clients and a central server. The server is using a WCF data service to allow clients to update data. An EF Model interfaces the server Data services. Clients use the below code. svr.AddToTable(NewData) svr.SaveChanges() I need to let the server DB add columns to tables and allow clients to continue to work with the d...

When should I change the tlib-version of my tag library?

I'm after guidelines on when I should change the tlib-version in the .tld of a tag library that I author. Specifically I'm wondering if I should bump the version number if I add new tags to the library or if I should only do this if I make breaking changes to existing tags? ...

Git auto diff in some external text file

Hi all! Sorry for my English ;) I want to make something like auto-diff. For example, Im writing an article and want to paste there all my changes in project code. I hate writing code, then copy-pasting it to text editor, writing comments, then writing code again. Can somebody advice me any way to do smth like this: I edit my some u...

approaches to WCF service version control

We are implementing numerous services in our company and running into versioning issues with data contracts. One of the problems we have is that our data contract are also used as the model of the actual application behind the service. I was wondering what approach others have taken in this kind of situation or just service versioning in...

Automatically bump versions when building a Debian package

I have a set of Debian packaging scripts and I would like the version number of the package to be incremented each time it is built. (i.e. debian_revision as specified in the Debian Policy Manual) That is, the first build should be PACKAGE-1.0-0, then PACKAGE-1.0-0, and so on (where 1.0 is the upstream_version). Is there an easy way to s...

How do I automatically set assembly version during nightly build?

We have a nightly build process that automatically versions all C++ projecs. Here's how it works. There's a common header file VersionNumber.h that has a specific #define for the version number. The nighly build checks this file out, increments the integer behind that #define and checks it in. All Visual C++ projects #include that header...

Understanding DLL Versioning in .NET 1.1 versus .NET 3.5

Is dll versioning implemented differently in .NET 1.1 versus .NET 3.5? It seems I can mix and match older and new versions of dependent dll's in deployed applications using .NET 1.1 but leads to problems when doing the same mixing a matching with dll's running in deployed .NET 3.5 applications. ...

Simple versioning (in PHP/Zend Framework)?

i am wondering how can i have simple versioning, say i want to be able to undo past edits (just up to 3 will do) to a post. maybe because the app allows other user to edit a post. but i may want the owner to restore the post for example. do i just store the full post in another field? ...

How to maintain source versions and project tree structure in source control repository

For a team of 4-5 developers using Visual Source Safe(VSS) 2005 what is best practice to maintain source versions? Our requirement is to maintain and identify a version that is currently in production. This way at all times we will know what piece of code was pushed during deployment. So far this is what I had in mind. -trunk - Main...

Versioning css/javascript in Wordpress

I 'm trying to grasp the concept of versioning css/js files. www.prelovac.com/vladimir/adding-version-to-theme-css-file <link rel="stylesheet" href="/css/base.css?version=1234" type="text/css" /> This method will actually prevent the file from being cached, period! This is bad. source What is the best practice of doin...

Getting the TeamCity build number into the AssemblyInfo file using Nant.

Hi, done a lot of googling but cant seem to find an exact solution to get the TeamCity build number into my AssemblyInfo files. Would appreciate a full solution for my requirements... 1 Get the build number into a Nant variable. I believe that this code will accomplish this.. PropertyGroup Version$(BUILD_NUMBER)/Version /Pro...

.NET Version Number (Installer Version)

I’m trying to add a feature to my winforms app that prints the version number on the main screen. I currently have this: txtVersion.Text = ProductVersion.ToString(); Which tells me the version of the program – all well and good. However, what I’d ideally like it to do is to pick up the version of the installer program that was used ...

Is CVS with Eclipse using the command line possible?

I've been using Eclipse to do CVS checkout from within the Eclipse interface. Is it possible to do it using the command line just like any normal CVS program? When I type CVS in my command prompt now, I get the usual cvs is not recognized as an internal or external command but CVSing should be possible since it's part of Eclipse. Do ...

IExtensibleDataObject usage in clients

I have converted my web service to wcf service which has some datacontracts. As a best practice it is mentioned and advisable that the DataContracts should inherit from IExtensibleDataObject. I get the point that in case of addition or removal of datamembers, IExtensibleDataObject is helpful. But i am not able to get how will the clients...

API design: Abstractions vs. coupling with version

We have a desktop application which needs to expose API. Some people say: API should have an abstraction layer so actual implementation can change in future versions. Others say: API should be version specific. So an API which uses version X will only work with it. Version X+1 will also deploy the dll's of version X in order not to bre...

API strategy of known .Net projects

I am writing an API for my application and have a few open questions (with versioning in mind). Should users call directly my objects or need I provide some abstraction? Should code that users wrote with version X of the API only work with version X or should it work also with the latest version? Initially I thought "abstraction" and...

Rails record versioning solution

I'm looking for a solution to version database changes in rails. Looking for something very basic. I mean like a wiki or SO edit versioning. ...