versions
How to test the current version of GCC at compile time?
There are a number of macros that should be defined for your needs: __GNUC__ // major __GNUC_MINOR__ // minor __GNUC_PATCHLEVEL__ // patch The version format is major.minor.patch, e.g. 4.0.2 The documentation for these can be found here.
Getting the subversion repository number into code
Two ways: Embed $Id$ or $Revision$ within the code. Then set svn:keywords=”Id Revision” property on the file. This will give you the last modified revision of that source file. Good for smaller projects and scripts. Alternatively, use a Makefile driven process and the command line tool svnversion. (Language specific – this should work for C/C++) … Read more
Can you mix .NET framework Versions in a solution?
Yes you can do this in Visual Studio and it is called Multi-Targeting. Scott Guthrie has a great blog-entry on Multi-Targeting Support in Visual Studio. VS 2008 was the first release of Visual Studio that included multi-targeting support for .NET. What this meant was that you could use VS 2008 to create and edit not … Read more
How best to use File Version and Assembly Version?
In solutions with multiple projects, one thing I’ve found very helpful is to have all the AssemblyInfo files point to a single project that governs the versioning. So my AssemblyInfos have a line: [assembly: AssemblyVersion(Foo.StaticVersion.Bar)] I have a project with a single file that declares the string: namespace Foo { public static class StaticVersion { … Read more
How do the .NET Framework, CLR and Visual Studio version numbers relate to each other?
Visual Studio CLR .NET Framework —————————————————————————————- Visual Studio .NET (Ranier) 1.0.3705 1.0 Visual Studio 2003 (Everett) 1.1.4322 1.1 Visual Studio 2005 (Whidbey) 2.0.50727 2.0 Visual Studio 2005 with .NET 3.0 Extensions 2.0.50727 2.0, 3.0 Visual Studio 2008 (Orcas) 2.0.50727 2.0 SP1, 3.0 SP1, 3.5 Visual Studio 2008 SP1 2.0.50727 2.0 SP2, 3.0 SP2, 3.5 SP1 … Read more
SVN (Subversion) Problem “File is scheduled for addition, but is missing” – Using Versions
I’m not sure what you’re trying to do: If you added the file via svn add myfile you only told svn to put this file into your repository when you do your next commit. There’s no change to the repository before you type an svn commit If you delete the file before the commit, svn … Read more
What do the numbers in a version typically represent (i.e. v1.9.0.1)?
In version 1.9.0.1: 1: Major revision (new UI, lots of new features, conceptual change, etc.) 9: Minor revision (maybe a change to a search box, 1 feature added, collection of bug fixes) 0: Bug fix release 1: Build number (if used)—that’s why you see the .NET framework using something like 2.0.4.2709 You won’t find a … Read more