3

I'm searching for a working Visual Studio 2012 addin which automatically increments my build number. Something like http://autobuildversion.codeplex.com/. But this isn't working for me.

I am using Visual Studio 2012 Ultimate, if it matters.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Lucas
  • 3,376
  • 6
  • 31
  • 46
  • Did the built-in auto-increment functionality not work for you? – GaTechThomas Mar 06 '13 at 20:46
  • 1
    @GaTechThomas -- Which "built-in" auto-increment functionality? I know of none that's useful. There's a weird "feature" that lets you put "*"s in ONE of your Version strings and it puts in a 6+ digit build date (which is useless for several reasons, the least of which: QA will think they're always running the latest, even if they don't build the latest), and one to increment the fourth version # when you manually publish (but again, useless on multiple counts: major being that windows ignores the fourth digit) -- so is there another functionality that you speak of? – BrainSlugs83 Oct 08 '13 at 18:54
  • The remarks at following link is what I'm referring to, which seems a bit different from what you describe: http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute.aspx – GaTechThomas Oct 08 '13 at 23:11

1 Answers1

2

Try ProjectBuildCounter. It is free, easy to use, no setups hassles and visual studio versions mess. Could use it for as many projects you want. You might download nere. Usage info is available here

i100
  • 4,529
  • 1
  • 22
  • 20
  • Your solution does not work for me. C:\Users\..\Documents\Visual Studio 2012\Projects\..\Properties\AssemblyInfo.cs goes to c:\...\Visual\.. – Lucas May 22 '13 at 00:16
  • you could try just to place the exe in the folder where AssemblyInfo.cs is located. It is fired when you run Build command from VS. Did you follow the steps described in documentation? – i100 May 22 '13 at 07:05
  • 1
    You solution isn't working when project is in a folder with spaces. as i said. – Lucas May 22 '13 at 12:09
  • you should quote path with spaces as usual – i100 May 22 '13 at 12:42
  • 1
    I tried it ofcourse. Still Error "code -532462766" or "code 255" now I put it in the same folder as assemblyInfo.cs now i get IndexOutOfRange exception.. – Lucas May 22 '13 at 12:46
  • please fire an issue here https://build.codeplex.com/workitem/list/basic together with your assemblyinfo.cs file. Thank you – i100 May 27 '13 at 09:13
  • Here is a new build which I hope should fix the IndexOutOfRange - https://build.codeplex.com/releases/view/107146 As for Error "code -532462766" or "code 255" what type of projects are you trying to build? Here is an interesting post about 255 exit error code - http://www.brothersincode.com/post/Environment-Variables-and-Visual-Studio-The-command-exited-with-code-255.aspx. Hope to be in help – i100 May 27 '13 at 15:50
  • do you have framework 4.5 installed? It is hard to find the problem by a frase "not working". Obviously there is a problem and it will be helpful (for the other too I guess) to find it. The easiest way is to fire an issue in the URL above with your build command line and AssemblyInfo.cs – i100 May 28 '13 at 15:52
  • 1
    Change your entry.. private static int Main(string[] args) { if (args == null || !args.Any() || args[0] == null) { return 0; } InputInit(args); – Lucas May 29 '13 at 21:17
  • thanks for the input Lucas. I'm little confused - obviously you've examined the code but still do not explain what is your setup and how you got Error "code -532462766" or "code 255". As for the code AFAK args cannot be null (refs: http://www.dotnetperls.com/main and http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/29ff0a1f-60be-4ce5-814b-ce20f0a72ae9). My tests do not reproduce any error caused by input args. There was a bug causing IndexOutOfRange exception which I hope is now fixed. As you know for sure to fix anything there must be enough info supplied as configs, actions – i100 May 30 '13 at 08:23