Click here to Skip to main content
15,896,453 members
Articles / .NET

Versioning Controlled Build

Rate me:
Please Sign up or sign in to vote.
4.90/5 (237 votes)
8 Dec 2013CPOL35 min read 2.2M   20.6K   779  
A Visual Studio add-in and command-line utility that automates versioning of .NET and VC++ projects
How to Install Versioning Controlled Build AddIn Manually 

NOTE: these files can be used as an add-in on Visual Studio 2008/2010/2012/2013

Before placing new version, it is highly recommended to uninstall previous 
version of add-in, confirming to remove configuration files.

1. Copy EXEs and DLLs to a destination folder. Recommended folders are:
   a. if all users of the computer are supposed to use the addIn:
      C:\Program Files\Versioning Controlled Build
	  or (on 64-bit OS):
      C:\Program Files (86)\Versioning Controlled Build
	  
   b. if only current user is supposed to use the addin:
      %LOACALAPPDATA%\Versioning Controlled Build
	  e.g.
	  C:\Users\<Username>\AppData\Local\Versioning Controlled Build
	  
	  Please note that this folder is hidden, but can easily be accessed by 
	  pasting %LOCALAPPDATA% into search text box that opens when you click 
	  Start button on Windows 7
	  
2. Modify VCB.AddIn file (you can use any plain text editor) so that <Assembly>
   tag in <Addin> section contains the correct path to AddinImplementation.VS8.dll
   file.
   You can optionally remove <HostApplication> sections for Visual Studio 
   versions you won't use:
   <Version>12.0</Version> applies to Visual Studio 2013
   <Version>11.0</Version> applies to Visual Studio 2012
   <Version>10.0</Version> applies to Visual Studio 2010
   <Version>9.0</Version> applies to Visual Studio 2008
   
3. Copy modified VCB.AddIn file into one of the following folders (you may 
   need to create the folder):
   a. if all users are supposed to use the addin:
      %VSCOMMONAPPDATA%\AddIns
	  e.g. for Visual Studio 2010:
	  C:\ProgramData\Microsoft\VisualStudio\10.0\Addins
	  or
	  C:\Documents and Settings\All Users\Application Data\Microsoft\VisualStudio\10.0\Addins

	  For other versions of Visual Studio you need to copy add-in file
	  to corresponding folders too: just replace "10.0" in the above path
	  with "11.0" for VS 2012 or "12.0" for Visual Studio 2013.
	  
   b. if only current user is supposed to use the addin:
      %VSAPPDATA%\AddIns
      e.g. for Visual Studio 2010:
	  C:\Users\<username>\AppData\Roaming\Microsoft\VisualStudio\10.0\AddIns"
	  or
	  C:\Documents and Settings\<username>\Application Data\Microsoft\VisualStudio\10.0\AddIns

	  For other versions of Visual Studio you need to copy add-in file
	  to corresponding folders too: just replace "10.0" in the above path
	  with "11.0" for VS 2012 or "12.0" for Visual Studio 2013.

   NOTE: Please read the article at http://www.mztools.com/articles/2008/MZ2008001.aspx 
   for more detailed explanation and other possible options for add-in file placement.
   
4. Start Visual Studio, go to Tools menu, Add-in Manager... and check 
   Versioning Controlled Build to activate it. If you check the Startup option 
   in the second column, VCB will be activated on Visual Studio start.
   After few seconds the Add-in Manager dialog is closed, VCB commands 
   (menu and toolbar) should appear.
   
5. Note that the tool creates two configuration files in the following folder:
   %APPDATA%\Versioning Controlled Build
   e.g.
   C:\Users\<username>\AppData\Roaming\Versioning Controlled Build

   These files can be deleted when tool is removed.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Croatia Croatia
Graduated at the Faculty of Electrical Engineering and Computing, University of Zagreb (Croatia) and received M.Sc. degree in electronics. For several years he was research and lecturing assistant in the fields of solid state electronics and electronic circuits, published several scientific and professional papers, as well as a book "Physics of Semiconductor Devices - Solved Problems with Theory" (in Croatian).
During that work he gained interest in C++ programming language and have co-written "C++ Demystified" (in Croatian), 1st edition published in 1997, 2nd in 2001, 3rd in 2010, 4th in 2014.
After book publication, completely switched to software development, programming mostly in C++ and in C#.
In 2016 coauthored the book "Python for Curious" (in Croatian).

Comments and Discussions