├── .gitattributes ├── .gitignore ├── BuildAutoIncrement.sln ├── BuildAutoIncrement ├── AboutCommand.cs ├── BaseCommand.cs ├── BuildAutoIncrement.csproj ├── BuildVersionsCommand.cs ├── Configuration │ ├── ClickOnceOptions.cs │ ├── ColorsConfiguration.cs │ ├── ConfigurationPersister.cs │ ├── DisplayOptions.cs │ ├── ExportConfiguration.cs │ ├── FoldersConfiguration.cs │ ├── ListViewColumnWidths.cs │ ├── NumberingOptions.cs │ ├── SourceSafeOptions.cs │ ├── VcbCommandBarsConfiguration.cs │ ├── VcbCommandBarsConfigurationPersister.cs │ ├── VcbConfiguration.cs │ └── VcbConfigurationSerializer.cs ├── ConfigureCommand.cs ├── Constants.cs ├── Export │ ├── ListExporter.cs │ ├── ListExporterToCsvFile.cs │ ├── ListExporterToFile.cs │ ├── ListExporterToPlainTextFile.cs │ ├── ListExporterToTextFile.cs │ └── ListPrinter.cs ├── Gui │ ├── FontDescription.cs │ ├── FontSelectionUserControl.cs │ ├── FontTextBox.cs │ ├── Forms │ │ ├── AboutBox.cs │ │ ├── AboutBox.resx │ │ ├── CheckOutErrorDialog.cs │ │ ├── CheckOutErrorDialog.resx │ │ ├── ColorsForm.cs │ │ ├── ColorsForm.resx │ │ ├── ConfigurationForm.cs │ │ ├── ConfigurationForm.resx │ │ ├── ExceptionForm.cs │ │ ├── ExceptionForm.resx │ │ ├── MainForm.cs │ │ ├── MainForm.resx │ │ ├── NoUpdateForm.cs │ │ ├── NoUpdateForm.resx │ │ ├── OperationSuccesForm.cs │ │ ├── OperationSuccesForm.resx │ │ ├── PromptUnsavedDocumentsDialog.cs │ │ ├── PromptUnsavedDocumentsDialog.resx │ │ ├── RemoveConfigurationsForm.cs │ │ ├── RemoveConfigurationsForm.resx │ │ ├── RemoveToolbarsForm.cs │ │ └── RemoveToolbarsForm.resx │ ├── LabelWithDivider.cs │ ├── ProjectsListView │ │ ├── AssemblyInfoListViewsControl.cs │ │ ├── AssemblyInfoListViewsControl.resx │ │ ├── ProjectsListView.cs │ │ └── ProjectsListView.resx │ ├── SpinButton.cs │ ├── VcbExportOptionsUserControl.cs │ ├── VersionSelectUserControl.cs │ ├── VersionTextBox.cs │ └── VersionUpDown.cs ├── GuiCommand.cs ├── Key.snk ├── PrintVersionsCommand.cs ├── ProjectFilter.cs ├── ProjectInfo.cs ├── ProjectInfoList.cs ├── ProjectTypeInfo.cs ├── Properties │ └── AssemblyInfo.cs ├── RebuildVersionsCommand.cs ├── Resources │ ├── App.ico │ ├── Bitmap1t.bmp │ ├── Bitmap2t.bmp │ ├── Bitmap3t.bmp │ ├── Bitmap4t.bmp │ ├── Bitmap5t.bmp │ ├── Bitmap6t.bmp │ ├── Bitmap7t.bmp │ ├── Buttons.resx │ ├── CSharpProject.bmp │ ├── CSharpProject.ico │ ├── CSharpProjectLight.ico │ ├── CommandGUI.ico │ ├── DbProject.bmp │ ├── DbProject.ico │ ├── DbProjectLight.ico │ ├── EnterpriseTemplate.bmp │ ├── EnterpriseTemplate.ico │ ├── EnterpriseTemplateLight.ico │ ├── FSharpProject.ico │ ├── FSharpProjectLight.ico │ ├── GuiCommand.png │ ├── GuiCommandPackage.ico │ ├── IconCommandGUI.ico │ ├── InstallShield.bmp │ ├── InstallShield.ico │ ├── InstallShieldLight.ico │ ├── IntelCppLight.ico │ ├── IntelCppProject.ico │ ├── ResourceAccessor.cs │ ├── SetupProject.bmp │ ├── SetupProject.ico │ ├── SetupProjectLight.ico │ ├── Shared.resx │ ├── VBProject.bmp │ ├── VBProject.ico │ ├── VBProjectLight.ico │ ├── VCB.AddIn │ ├── VCProject.bmp │ ├── VCProject.ico │ ├── VCProjectLight.ico │ ├── VJSharpProject.bmp │ ├── VJSharpProject.ico │ ├── VJSharpProjectLight.ico │ ├── Versioning Controlled Build.png │ ├── eCSharpProject.bmp │ ├── eCSharpProject.ico │ ├── eCSharpProjectLight.ico │ ├── eVBProject.bmp │ ├── eVBProject.ico │ ├── eVBProjectLight.ico │ ├── folder.bmp │ ├── folder.ico │ ├── folderLight.ico │ ├── webproject.bmp │ ├── webproject.ico │ └── webprojectLight.ico ├── SaveUpdatedVersionsCommand.cs ├── SaveVersionsCommand.cs ├── SolutionBrowser.cs ├── Util │ ├── AddInFileInstaller.cs │ ├── Exceptions.cs │ ├── FileUtil.cs │ ├── ImplementationAssemblyLoader.cs │ ├── InetRootLocator.cs │ ├── Installer.Designer.cs │ ├── Installer.cs │ ├── InvalidFileFilterCharacters.cs │ ├── MessageFilter.cs │ ├── PermanentUIRemover.cs │ ├── ProjectItemInfo.cs │ ├── ProjectsSortedArrayList.cs │ ├── SetupProjectsLoader.cs │ ├── SolutionExplorerSelector.cs │ ├── SourceSafeCheckout.cs │ ├── SourceSafeLocator.cs │ ├── UpdateSummary.cs │ ├── VisualStyles.cs │ ├── VssCheckout.cs │ ├── Win32Api.cs │ ├── WindowAdapter.cs │ └── WoW64RegistryKey.cs ├── VSPackage.resx ├── VSSolutionBrowser.cs ├── VcbCommandPackage.cs ├── VcbCommandPackage.vsct ├── VersionStreams │ ├── AssemblyInfoStream.cs │ ├── InstallShieldLEVersionStream.cs │ ├── ResourceFileStream.cs │ ├── SetupVersionStream.cs │ ├── VersionStream.cs │ └── VersionStreamWGuid.cs ├── Versions │ ├── AssemblyVersions.cs │ ├── NewVersionProvider.cs │ └── ProjectVersion.cs ├── app.config ├── changelog.txt ├── license.txt ├── readme.txt └── source.extension.vsixmanifest ├── README.md └── Runtime └── MultiTabColorPicker.dll /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | build/ 21 | bld/ 22 | [Bb]in/ 23 | [Oo]bj/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | 28 | # MSTest test Results 29 | [Tt]est[Rr]esult*/ 30 | [Bb]uild[Ll]og.* 31 | 32 | # NUNIT 33 | *.VisualState.xml 34 | TestResult.xml 35 | 36 | # Build Results of an ATL Project 37 | [Dd]ebugPS/ 38 | [Rr]eleasePS/ 39 | dlldata.c 40 | 41 | # DNX 42 | project.lock.json 43 | artifacts/ 44 | 45 | *_i.c 46 | *_p.c 47 | *_i.h 48 | *.ilk 49 | *.meta 50 | *.obj 51 | *.pch 52 | *.pdb 53 | *.pgc 54 | *.pgd 55 | *.rsp 56 | *.sbr 57 | *.tlb 58 | *.tli 59 | *.tlh 60 | *.tmp 61 | *.tmp_proj 62 | *.log 63 | *.vspscc 64 | *.vssscc 65 | .builds 66 | *.pidb 67 | *.svclog 68 | *.scc 69 | 70 | # Chutzpah Test files 71 | _Chutzpah* 72 | 73 | # Visual C++ cache files 74 | ipch/ 75 | *.aps 76 | *.ncb 77 | *.opensdf 78 | *.sdf 79 | *.cachefile 80 | 81 | # Visual Studio profiler 82 | *.psess 83 | *.vsp 84 | *.vspx 85 | 86 | # TFS 2012 Local Workspace 87 | $tf/ 88 | 89 | # Guidance Automation Toolkit 90 | *.gpState 91 | 92 | # ReSharper is a .NET coding add-in 93 | _ReSharper*/ 94 | *.[Rr]e[Ss]harper 95 | *.DotSettings.user 96 | 97 | # JustCode is a .NET coding add-in 98 | .JustCode 99 | 100 | # TeamCity is a build add-in 101 | _TeamCity* 102 | 103 | # DotCover is a Code Coverage Tool 104 | *.dotCover 105 | 106 | # NCrunch 107 | _NCrunch_* 108 | .*crunch*.local.xml 109 | 110 | # MightyMoose 111 | *.mm.* 112 | AutoTest.Net/ 113 | 114 | # Web workbench (sass) 115 | .sass-cache/ 116 | 117 | # Installshield output folder 118 | [Ee]xpress/ 119 | 120 | # DocProject is a documentation generator add-in 121 | DocProject/buildhelp/ 122 | DocProject/Help/*.HxT 123 | DocProject/Help/*.HxC 124 | DocProject/Help/*.hhc 125 | DocProject/Help/*.hhk 126 | DocProject/Help/*.hhp 127 | DocProject/Help/Html2 128 | DocProject/Help/html 129 | 130 | # Click-Once directory 131 | publish/ 132 | 133 | # Publish Web Output 134 | *.[Pp]ublish.xml 135 | *.azurePubxml 136 | ## TODO: Comment the next line if you want to checkin your 137 | ## web deploy settings but do note that will include unencrypted 138 | ## passwords 139 | #*.pubxml 140 | 141 | *.publishproj 142 | 143 | # NuGet Packages 144 | *.nupkg 145 | # The packages folder can be ignored because of Package Restore 146 | **/packages/* 147 | # except build/, which is used as an MSBuild target. 148 | !**/packages/build/ 149 | # Uncomment if necessary however generally it will be regenerated when needed 150 | #!**/packages/repositories.config 151 | 152 | # Windows Azure Build Output 153 | csx/ 154 | *.build.csdef 155 | 156 | # Windows Store app package directory 157 | AppPackages/ 158 | 159 | # Visual Studio cache files 160 | # files ending in .cache can be ignored 161 | *.[Cc]ache 162 | # but keep track of directories ending in .cache 163 | !*.[Cc]ache/ 164 | 165 | # Others 166 | ClientBin/ 167 | [Ss]tyle[Cc]op.* 168 | ~$* 169 | *~ 170 | *.dbmdl 171 | *.dbproj.schemaview 172 | *.pfx 173 | *.publishsettings 174 | node_modules/ 175 | orleans.codegen.cs 176 | 177 | # RIA/Silverlight projects 178 | Generated_Code/ 179 | 180 | # Backup & report files from converting an old project file 181 | # to a newer Visual Studio version. Backup files are not needed, 182 | # because we have git ;-) 183 | _UpgradeReport_Files/ 184 | Backup*/ 185 | UpgradeLog*.XML 186 | UpgradeLog*.htm 187 | 188 | # SQL Server files 189 | *.mdf 190 | *.ldf 191 | 192 | # Business Intelligence projects 193 | *.rdl.data 194 | *.bim.layout 195 | *.bim_*.settings 196 | 197 | # Microsoft Fakes 198 | FakesAssemblies/ 199 | 200 | # Node.js Tools for Visual Studio 201 | .ntvs_analysis.dat 202 | 203 | # Visual Studio 6 build log 204 | *.plg 205 | 206 | # Visual Studio 6 workspace options file 207 | *.opt 208 | 209 | # LightSwitch generated files 210 | GeneratedArtifacts/ 211 | _Pvt_Extensions/ 212 | ModelManifest.xml 213 | -------------------------------------------------------------------------------- /BuildAutoIncrement.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.24720.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BuildAutoIncrement", "BuildAutoIncrement\BuildAutoIncrement.csproj", "{F19E7F79-5C7D-4FE0-A4F2-12B663E2D3E3}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Debug|x86 = Debug|x86 12 | Release|Any CPU = Release|Any CPU 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {F19E7F79-5C7D-4FE0-A4F2-12B663E2D3E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {F19E7F79-5C7D-4FE0-A4F2-12B663E2D3E3}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {F19E7F79-5C7D-4FE0-A4F2-12B663E2D3E3}.Debug|x86.ActiveCfg = Debug|x86 19 | {F19E7F79-5C7D-4FE0-A4F2-12B663E2D3E3}.Debug|x86.Build.0 = Debug|x86 20 | {F19E7F79-5C7D-4FE0-A4F2-12B663E2D3E3}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {F19E7F79-5C7D-4FE0-A4F2-12B663E2D3E3}.Release|Any CPU.Build.0 = Release|Any CPU 22 | {F19E7F79-5C7D-4FE0-A4F2-12B663E2D3E3}.Release|x86.ActiveCfg = Release|x86 23 | {F19E7F79-5C7D-4FE0-A4F2-12B663E2D3E3}.Release|x86.Build.0 = Release|x86 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /BuildAutoIncrement/AboutCommand.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Copyright (c) Company. All rights reserved. 4 | // 5 | //------------------------------------------------------------------------------ 6 | 7 | using System; 8 | using System.ComponentModel.Design; 9 | using System.Globalization; 10 | using EnvDTE; 11 | using Microsoft.VisualStudio.Shell; 12 | using Microsoft.VisualStudio.Shell.Interop; 13 | 14 | namespace BuildAutoIncrement 15 | { 16 | /// 17 | /// Command handler 18 | /// 19 | internal sealed class AboutCommand : BaseCommand 20 | { 21 | 22 | /// 23 | /// Initializes a new instance of the class. 24 | /// Adds our command handlers for menu (commands must exist in the command table file) 25 | /// 26 | /// Owner package, not null. 27 | private AboutCommand(Package package) : base(package, 0x0307, false) { } 28 | 29 | /// 30 | /// Gets the instance of the command. 31 | /// 32 | public static AboutCommand Instance 33 | { 34 | get; 35 | private set; 36 | } 37 | 38 | /// 39 | /// Initializes the singleton instance of the command. 40 | /// 41 | /// Owner package, not null. 42 | public static void Initialize(Package package) 43 | { 44 | Instance = new AboutCommand(package); 45 | } 46 | 47 | /// 48 | /// This function is the callback used to execute the command when the menu item is clicked. 49 | /// See the constructor to see how the menu item is associated with this function using 50 | /// OleMenuCommandService service and MenuCommand class. 51 | /// 52 | /// Event sender. 53 | /// Event args. 54 | protected override void MenuItemCallback(object sender, EventArgs e) 55 | { 56 | base.PreMenuItemCallback(); 57 | 58 | AboutBox.Show(new WindowAdapter(m_devEnvApplicationObject.MainWindow.HWnd.ToInt32())); 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /BuildAutoIncrement/BaseCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.Design; 4 | using System.Diagnostics; 5 | using System.Linq; 6 | using System.Runtime.InteropServices; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using EnvDTE; 10 | using Microsoft.VisualStudio; 11 | using Microsoft.VisualStudio.Shell; 12 | using Microsoft.VisualStudio.Shell.Interop; 13 | 14 | namespace BuildAutoIncrement 15 | { 16 | abstract public class BaseCommand 17 | { 18 | 19 | /// 20 | /// Command menu group (command set GUID). 21 | /// 22 | public static readonly Guid CommandSet = new Guid("2291da24-92e5-4ea4-bdb7-72a9b5ac7d59"); 23 | 24 | /// 25 | /// VS Package that provides this command, not null. 26 | /// 27 | private readonly Package package; 28 | 29 | public BaseCommand(Package package, int commandId, bool isDynamic = true) 30 | { 31 | if (package == null) 32 | { 33 | throw new ArgumentNullException("package"); 34 | } 35 | 36 | this.package = package; 37 | 38 | OleMenuCommandService commandService = this.ServiceProvider.GetService(typeof(IMenuCommandService)) as OleMenuCommandService; 39 | if (commandService != null) 40 | { 41 | var menuCommandID = new CommandID(CommandSet, commandId); 42 | var menuItem = new OleMenuCommand(this.MenuItemCallback, menuCommandID); 43 | if (isDynamic) 44 | { 45 | menuItem.BeforeQueryStatus += MenuItem_BeforeQueryStatus; 46 | } 47 | commandService.AddCommand(menuItem); 48 | } 49 | } 50 | 51 | private void MenuItem_BeforeQueryStatus(object sender, EventArgs e) 52 | { 53 | // get the menu that fired the event 54 | var menuCommand = sender as OleMenuCommand; 55 | if (menuCommand != null) 56 | { 57 | // start by assuming that the menu will not be shown 58 | menuCommand.Visible = false; 59 | menuCommand.Enabled = false; 60 | 61 | IVsHierarchy hierarchy = null; 62 | uint itemid = VSConstants.VSITEMID_NIL; 63 | 64 | if (!IsSingleProjectItemSelection(out hierarchy, out itemid)) return; 65 | 66 | menuCommand.Visible = true; 67 | menuCommand.Enabled = true; 68 | } 69 | } 70 | 71 | public static bool IsSingleProjectItemSelection(out IVsHierarchy hierarchy, out uint itemid) 72 | { 73 | hierarchy = null; 74 | itemid = VSConstants.VSITEMID_NIL; 75 | int hr = VSConstants.S_OK; 76 | 77 | var monitorSelection = Package.GetGlobalService(typeof(SVsShellMonitorSelection)) as IVsMonitorSelection; 78 | var solution = Package.GetGlobalService(typeof(SVsSolution)) as IVsSolution; 79 | if (monitorSelection == null || solution == null) 80 | { 81 | return false; 82 | } 83 | 84 | IVsMultiItemSelect multiItemSelect = null; 85 | IntPtr hierarchyPtr = IntPtr.Zero; 86 | IntPtr selectionContainerPtr = IntPtr.Zero; 87 | 88 | try 89 | { 90 | hr = monitorSelection.GetCurrentSelection(out hierarchyPtr, out itemid, out multiItemSelect, out selectionContainerPtr); 91 | 92 | if (ErrorHandler.Failed(hr) || hierarchyPtr == IntPtr.Zero || itemid == VSConstants.VSITEMID_NIL) 93 | { 94 | // there is no selection 95 | return false; 96 | } 97 | 98 | // multiple items are selected 99 | if (multiItemSelect != null) return false; 100 | 101 | // there is a hierarchy root node selected, thus it is not a single item inside a project 102 | 103 | if (itemid == VSConstants.VSITEMID_ROOT) return false; 104 | 105 | hierarchy = Marshal.GetObjectForIUnknown(hierarchyPtr) as IVsHierarchy; 106 | if (hierarchy == null) return false; 107 | 108 | Guid guidProjectID = Guid.Empty; 109 | 110 | if (ErrorHandler.Failed(solution.GetGuidOfProject(hierarchy, out guidProjectID))) 111 | { 112 | return false; // hierarchy is not a project inside the Solution if it does not have a ProjectID Guid 113 | } 114 | 115 | // if we got this far then there is a single project item selected 116 | return true; 117 | } 118 | finally 119 | { 120 | if (selectionContainerPtr != IntPtr.Zero) 121 | { 122 | Marshal.Release(selectionContainerPtr); 123 | } 124 | 125 | if (hierarchyPtr != IntPtr.Zero) 126 | { 127 | Marshal.Release(hierarchyPtr); 128 | } 129 | } 130 | } 131 | 132 | /// 133 | /// Gets the service provider from the owner package. 134 | /// 135 | private IServiceProvider ServiceProvider 136 | { 137 | get 138 | { 139 | return this.package; 140 | } 141 | } 142 | 143 | protected void PreMenuItemCallback() 144 | { 145 | m_devEnvApplicationObject = (DTE)this.ServiceProvider.GetService(typeof(DTE)); 146 | configuration = ConfigurationPersister.Instance.Configuration; 147 | 148 | Debug.Assert(m_devEnvApplicationObject != null); 149 | Debug.Assert(configuration != null); 150 | 151 | m_solutionBrowser = new VSSolutionBrowser(m_devEnvApplicationObject, configuration, this.ServiceProvider); 152 | IProjectFilter projectFilter = new ProjectFilterByType(configuration.NumberingOptions.IncludeSetupProjects, configuration.DisplayOptions.ShowNonVersionableProjects, configuration.DisplayOptions.ShowSubProjectRoot, configuration.DisplayOptions.ShowEnterpriseTemplateProjectRoot); 153 | m_solutionBrowser.ApplyFilter(projectFilter); 154 | Debug.Assert(m_solutionBrowser != null); 155 | } 156 | 157 | abstract protected void MenuItemCallback(object sender, EventArgs e); 158 | 159 | protected DTE m_devEnvApplicationObject; 160 | protected VSSolutionBrowser m_solutionBrowser; 161 | protected VcbConfiguration configuration; 162 | } 163 | } 164 | -------------------------------------------------------------------------------- /BuildAutoIncrement/BuildVersionsCommand.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Copyright (c) Company. All rights reserved. 4 | // 5 | //------------------------------------------------------------------------------ 6 | 7 | using System; 8 | using System.ComponentModel.Design; 9 | using System.Diagnostics; 10 | using System.Globalization; 11 | using System.Windows.Forms; 12 | using EnvDTE; 13 | using Microsoft.VisualStudio.Shell; 14 | using Microsoft.VisualStudio.Shell.Interop; 15 | 16 | namespace BuildAutoIncrement 17 | { 18 | /// 19 | /// Command handler 20 | /// 21 | internal sealed class BuildVersionsCommand : BaseCommand 22 | { 23 | /// 24 | /// Initializes a new instance of the class. 25 | /// Adds our command handlers for menu (commands must exist in the command table file) 26 | /// 27 | /// Owner package, not null. 28 | private BuildVersionsCommand(Package package) : base(package, 0x0301) { } 29 | 30 | /// 31 | /// Gets the instance of the command. 32 | /// 33 | public static BuildVersionsCommand Instance 34 | { 35 | get; 36 | private set; 37 | } 38 | 39 | /// 40 | /// Initializes the singleton instance of the command. 41 | /// 42 | /// Owner package, not null. 43 | public static void Initialize(Package package) 44 | { 45 | Instance = new BuildVersionsCommand(package); 46 | } 47 | 48 | /// 49 | /// This function is the callback used to execute the command when the menu item is clicked. 50 | /// See the constructor to see how the menu item is associated with this function using 51 | /// OleMenuCommandService service and MenuCommand class. 52 | /// 53 | /// Event sender. 54 | /// Event args. 55 | protected override void MenuItemCallback(object sender, EventArgs e) 56 | { 57 | base.PreMenuItemCallback(); 58 | 59 | m_solutionBrowser.CheckOutProjectVersionFiles(m_solutionBrowser.ProjectsToUpdate); 60 | SetupProjectsLoader spl = new SetupProjectsLoader(m_devEnvApplicationObject); 61 | spl.UnloadSetupProjects(m_solutionBrowser.ProjectsToUpdate); 62 | m_solutionBrowser.SaveVersions(); 63 | spl.ReloadSetupProjects(); 64 | 65 | bool runCommand = true; 66 | if (m_solutionBrowser.UpdateSummary.UpdatedItemsCount == 0) 67 | runCommand = NoUpdateForm.Show(new WindowAdapter(m_devEnvApplicationObject.MainWindow.HWnd.ToInt32())) == DialogResult.Yes; 68 | 69 | if (runCommand) 70 | m_devEnvApplicationObject.ExecuteCommand("Build.BuildSolution", ""); 71 | 72 | if (m_solutionBrowser.UpdateSummary.UpdatedItemsCount > 0 && ConfigurationPersister.Instance.Configuration.DisplayOptions.ShowSuccessDialog) 73 | OperationSuccesForm.Show(new WindowAdapter(m_devEnvApplicationObject.MainWindow.HWnd.ToInt32()), m_solutionBrowser.UpdateSummary.SummaryItems); 74 | 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Configuration/ClickOnceOptions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Configuration/ClickOnceOptions.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Configuration/ColorsConfiguration.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Configuration/ColorsConfiguration.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Configuration/ConfigurationPersister.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Configuration/ConfigurationPersister.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Configuration/DisplayOptions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Configuration/DisplayOptions.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Configuration/ExportConfiguration.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.Xml.Serialization; 4 | 5 | namespace BuildAutoIncrement { 6 | 7 | public enum ExportFileFormat { 8 | PlainText, 9 | CSV, 10 | XML 11 | } 12 | 13 | #region PrintOptions 14 | 15 | /// 16 | /// Export options related to printing. 17 | /// 18 | public class PrintOptions { 19 | 20 | #region Constructors 21 | 22 | /// 23 | /// Creates PrintOptions object. 24 | /// 25 | public PrintOptions() { 26 | m_printProjectIcons = true; 27 | m_itemFont = new FontDescription(); 28 | m_itemFont.Size = 9.0f; 29 | m_headingFont = new FontDescription(); 30 | m_headingFont.FontStyle = System.Drawing.FontStyle.Bold; 31 | m_headingFont.Size = 9.0f; 32 | m_headerFont = new FontDescription(); 33 | } 34 | 35 | #endregion // Constructors 36 | 37 | #region Public properties 38 | 39 | /// 40 | /// Gets or sets flag indicating if project icons are printed. 41 | /// 42 | public bool PrintProjectIcons { 43 | get { 44 | return m_printProjectIcons; 45 | } 46 | set { 47 | m_printProjectIcons = value; 48 | } 49 | } 50 | 51 | /// 52 | /// Gets or sets FontDescription of the font used for items. 53 | /// 54 | public FontDescription ItemFont { 55 | get { 56 | return m_itemFont; 57 | } 58 | set { 59 | m_itemFont = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Gets or sets FontDescription of the font used for heading. 65 | /// 66 | public FontDescription HeadingFont { 67 | get { 68 | return m_headingFont; 69 | } 70 | set { 71 | m_headingFont = value; 72 | } 73 | } 74 | 75 | /// 76 | /// Gets or sets FontDescription of the font used for header. 77 | /// 78 | public FontDescription HeaderFont { 79 | get { 80 | return m_headerFont; 81 | } 82 | set { 83 | m_headerFont = value; 84 | } 85 | } 86 | 87 | #endregion // Public properties 88 | 89 | #region Private fields 90 | 91 | private bool m_printProjectIcons; 92 | private FontDescription m_itemFont; 93 | private FontDescription m_headingFont; 94 | private FontDescription m_headerFont; 95 | 96 | #endregion // Private fields 97 | } 98 | 99 | #endregion // PrintOptions 100 | 101 | #region AssemblyVersionTypeSelection 102 | 103 | /// 104 | /// Class with order and selection of assembly version types that are 105 | /// exported. 106 | /// 107 | [Serializable] 108 | public class AssemblyVersionTypeSelection { 109 | 110 | #region Constructors 111 | 112 | /// 113 | /// Creates empty AssemblyVersionTypeSelection object. 114 | /// 115 | public AssemblyVersionTypeSelection() { 116 | m_isSelected = true; 117 | } 118 | 119 | /// 120 | /// Creates AssemblyVersionTypeSelection object with 121 | /// AssemblyVersionType provided. 122 | /// 123 | /// 124 | /// AssemblyVersionType to initialize with. 125 | /// 126 | public AssemblyVersionTypeSelection(AssemblyVersionType assemblyVersionType) : this() { 127 | m_assemblyVersionType = assemblyVersionType; 128 | } 129 | 130 | #endregion // Constructors 131 | 132 | #region Public properties 133 | 134 | /// 135 | /// Gets or sets AssemblyVersionType flag. 136 | /// 137 | [XmlText] 138 | public AssemblyVersionType AssemblyVersionType { 139 | get { 140 | return m_assemblyVersionType; 141 | } 142 | set { 143 | m_assemblyVersionType = value; 144 | } 145 | } 146 | 147 | /// 148 | /// Gets or sets flag indicating if current type is selected. 149 | /// 150 | [XmlAttribute] 151 | public bool IsSelected { 152 | get { 153 | return m_isSelected; 154 | } 155 | set { 156 | m_isSelected = value; 157 | } 158 | } 159 | 160 | #endregion // Public properties 161 | 162 | private AssemblyVersionType m_assemblyVersionType; 163 | 164 | private bool m_isSelected; 165 | 166 | /// 167 | /// Default array of AssemblyVersionTypeSelection with all types selected. 168 | /// 169 | public static AssemblyVersionTypeSelection[] DefaultSelection 170 | = new AssemblyVersionTypeSelection[] { 171 | new AssemblyVersionTypeSelection(AssemblyVersionType.AssemblyVersion), 172 | new AssemblyVersionTypeSelection(AssemblyVersionType.AssemblyFileVersion), 173 | new AssemblyVersionTypeSelection(AssemblyVersionType.AssemblyInformationalVersion) 174 | }; 175 | 176 | } 177 | 178 | #endregion // AssemblyVersionTypeSelection 179 | 180 | #region ExportConfiguration 181 | 182 | /// 183 | /// Configuration used for exporting. 184 | /// 185 | [Serializable] 186 | public class ExportConfiguration { 187 | 188 | #region Constructors 189 | 190 | public ExportConfiguration() { 191 | m_assemblyVersionTypes = AssemblyVersionTypeSelection.DefaultSelection; 192 | m_indentSubItems = true; 193 | m_indentSubItemsBy = 1; 194 | m_excludeNonversionableItems = false; 195 | m_printOptions = new PrintOptions(); 196 | m_exportFileFormat = ExportFileFormat.PlainText; 197 | m_csvSeparator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; 198 | Debug.Assert(m_assemblyVersionTypes != null && m_assemblyVersionTypes.Length == 3); 199 | Debug.Assert(m_printOptions != null); 200 | } 201 | 202 | #endregion // Constructors 203 | 204 | #region Public properties 205 | 206 | public AssemblyVersionTypeSelection[] AssemblyVersionTypes { 207 | get { 208 | return m_assemblyVersionTypes; 209 | } 210 | set { 211 | m_assemblyVersionTypes = value; 212 | } 213 | } 214 | 215 | public bool IndentSubItems { 216 | get { 217 | return m_indentSubItems; 218 | } 219 | set { 220 | m_indentSubItems = value; 221 | } 222 | } 223 | 224 | public int IndentSubItemsBy { 225 | get { 226 | return m_indentSubItemsBy; 227 | } 228 | set { 229 | m_indentSubItemsBy = value; 230 | } 231 | } 232 | 233 | public bool ExcludeNonversionableItems { 234 | get { 235 | return m_excludeNonversionableItems; 236 | } 237 | set { 238 | m_excludeNonversionableItems = value; 239 | } 240 | } 241 | 242 | public PrintOptions PrintOptions { 243 | get { 244 | return m_printOptions; 245 | } 246 | set { 247 | m_printOptions = value; 248 | } 249 | } 250 | 251 | public ExportFileFormat ExportFileFormat { 252 | get { 253 | return m_exportFileFormat; 254 | } 255 | set { 256 | m_exportFileFormat = value; 257 | } 258 | } 259 | 260 | public string CsvSeparator { 261 | get { 262 | return m_csvSeparator; 263 | } 264 | set { 265 | m_csvSeparator = value; 266 | } 267 | } 268 | 269 | #endregion // Public properties 270 | 271 | #region Private fields 272 | 273 | private AssemblyVersionTypeSelection[] m_assemblyVersionTypes; 274 | 275 | private bool m_indentSubItems; 276 | 277 | private int m_indentSubItemsBy; 278 | 279 | private bool m_excludeNonversionableItems; 280 | 281 | private PrintOptions m_printOptions; 282 | 283 | private ExportFileFormat m_exportFileFormat; 284 | 285 | private string m_csvSeparator; 286 | 287 | #endregion // Private fields 288 | } 289 | 290 | #endregion // ExportConfiguration 291 | 292 | } 293 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Configuration/FoldersConfiguration.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Configuration/FoldersConfiguration.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Configuration/ListViewColumnWidths.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Configuration/ListViewColumnWidths.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Configuration/NumberingOptions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Configuration/NumberingOptions.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Configuration/SourceSafeOptions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Configuration/SourceSafeOptions.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Configuration/VcbCommandBarsConfigurationPersister.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.IO; 4 | using System.Xml.Serialization; 5 | using System.Xml; 6 | using System.Collections.Specialized; 7 | 8 | namespace BuildAutoIncrement { 9 | /// 10 | /// Class responsible to load and save add-in GUI configuration file. 11 | /// 12 | public sealed class VcbCommandBarsConfigurationPersister { 13 | 14 | private static readonly VcbCommandBarsConfigurationPersister m_instance = new VcbCommandBarsConfigurationPersister(); 15 | 16 | /// 17 | /// Creates VcbCommandBarsConfigurationPersister object. 18 | /// 19 | private VcbCommandBarsConfigurationPersister() { 20 | ConfigurationFolder = FileUtil.GetConfigurationFolder(); 21 | ConfigurationFilename = Path.Combine(ConfigurationFolder, Filename); 22 | 23 | // read current configuration or create empty one if file not found 24 | m_uiElementsConfigurations = LoadConfiguration(); 25 | } 26 | 27 | public static VcbCommandBarsConfigurationPersister Instance { 28 | get { 29 | return m_instance; 30 | } 31 | } 32 | 33 | /// 34 | /// Gets configuration. 35 | /// 36 | public VcbCommandBarsConfiguration Configurations { 37 | get { 38 | Debug.Assert(m_uiElementsConfigurations != null); 39 | return m_uiElementsConfigurations; 40 | } 41 | } 42 | 43 | /// 44 | /// Reads configuration from the file. If file does not exists, 45 | /// creates default configuration. 46 | /// 47 | /// 48 | private VcbCommandBarsConfiguration LoadConfiguration() { 49 | if (Directory.Exists(ConfigurationFolder)) { 50 | try { 51 | using (FileStream reader = new FileStream(ConfigurationFilename, FileMode.Open)) { 52 | XmlSerializer serializer = new XmlSerializer(typeof(VcbCommandBarsConfiguration)); 53 | return (VcbCommandBarsConfiguration)serializer.Deserialize(reader); 54 | } 55 | } 56 | catch (FileNotFoundException) { 57 | } 58 | catch (Exception exception) { 59 | ExceptionForm.Show(exception); 60 | } 61 | } 62 | return new VcbCommandBarsConfiguration(); 63 | } 64 | 65 | /// 66 | /// Saves configuration to the file. 67 | /// 68 | public void StoreConfiguration() { 69 | try { 70 | if (!Directory.Exists(ConfigurationFolder)) { 71 | // create directory where configuration will be saved 72 | Directory.CreateDirectory(ConfigurationFolder); 73 | } 74 | using (FileStream writer = new FileStream(ConfigurationFilename, FileMode.Create)) { 75 | XmlSerializer serializer = new XmlSerializer(typeof(VcbCommandBarsConfiguration)); 76 | serializer.Serialize(writer, m_uiElementsConfigurations); 77 | } 78 | } 79 | catch (Exception exception) { 80 | ExceptionForm.Show(exception); 81 | } 82 | } 83 | 84 | private readonly VcbCommandBarsConfiguration m_uiElementsConfigurations; 85 | 86 | private readonly string ConfigurationFolder; 87 | private readonly string ConfigurationFilename; 88 | 89 | public const string Filename = "UiSettings.xml"; 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Configuration/VcbConfiguration.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Configuration/VcbConfiguration.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/ConfigureCommand.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Copyright (c) Company. All rights reserved. 4 | // 5 | //------------------------------------------------------------------------------ 6 | 7 | using System; 8 | using System.ComponentModel.Design; 9 | using System.Diagnostics; 10 | using System.Globalization; 11 | using System.Windows.Forms; 12 | using EnvDTE; 13 | using Microsoft.VisualStudio.Shell; 14 | using Microsoft.VisualStudio.Shell.Interop; 15 | 16 | namespace BuildAutoIncrement 17 | { 18 | /// 19 | /// Command handler 20 | /// 21 | internal sealed class ConfigureCommand : BaseCommand 22 | { 23 | 24 | /// 25 | /// Initializes a new instance of the class. 26 | /// Adds our command handlers for menu (commands must exist in the command table file) 27 | /// 28 | /// Owner package, not null. 29 | private ConfigureCommand(Package package) : base(package, 0x0306, false) { } 30 | 31 | /// 32 | /// Gets the instance of the command. 33 | /// 34 | public static ConfigureCommand Instance 35 | { 36 | get; 37 | private set; 38 | } 39 | 40 | /// 41 | /// Initializes the singleton instance of the command. 42 | /// 43 | /// Owner package, not null. 44 | public static void Initialize(Package package) 45 | { 46 | Instance = new ConfigureCommand(package); 47 | } 48 | 49 | /// 50 | /// This function is the callback used to execute the command when the menu item is clicked. 51 | /// See the constructor to see how the menu item is associated with this function using 52 | /// OleMenuCommandService service and MenuCommand class. 53 | /// 54 | /// Event sender. 55 | /// Event args. 56 | protected override void MenuItemCallback(object sender, EventArgs e) 57 | { 58 | base.PreMenuItemCallback(); 59 | 60 | try 61 | { 62 | ConfigurationForm configurationForm = new ConfigurationForm(); 63 | if (configurationForm.ShowDialog(new WindowAdapter(m_devEnvApplicationObject.MainWindow.HWnd.ToInt32())) == DialogResult.OK) 64 | { 65 | ConfigurationPersister.Instance.Configuration = configurationForm.GetConfiguration(); 66 | ConfigurationPersister.Instance.StoreConfiguration(); 67 | } 68 | } 69 | catch (Exception ex) 70 | { 71 | ExceptionForm.Show(new WindowAdapter(m_devEnvApplicationObject.MainWindow.HWnd.ToInt32()), ex, "Error starting Versioning Controlled Build add-in"); 72 | } 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Constants.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Constants.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Export/ListExporter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Export/ListExporter.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Export/ListExporterToCsvFile.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Export/ListExporterToCsvFile.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Export/ListExporterToFile.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Export/ListExporterToFile.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Export/ListExporterToPlainTextFile.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Export/ListExporterToPlainTextFile.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Export/ListExporterToTextFile.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Export/ListExporterToTextFile.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Export/ListPrinter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Export/ListPrinter.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/FontDescription.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/FontDescription.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/FontSelectionUserControl.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/FontSelectionUserControl.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/FontTextBox.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/FontTextBox.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/AboutBox.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/Forms/AboutBox.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/AboutBox.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/CheckOutErrorDialog.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/Forms/CheckOutErrorDialog.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/CheckOutErrorDialog.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | text/microsoft-resx 90 | 91 | 92 | 1.3 93 | 94 | 95 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 96 | 97 | 98 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 99 | 100 | 101 | False 102 | 103 | 104 | Private 105 | 106 | 107 | Private 108 | 109 | 110 | Private 111 | 112 | 113 | False 114 | 115 | 116 | Private 117 | 118 | 119 | False 120 | 121 | 122 | Private 123 | 124 | 125 | Private 126 | 127 | 128 | False 129 | 130 | 131 | Private 132 | 133 | 134 | Private 135 | 136 | 137 | False 138 | 139 | 140 | Private 141 | 142 | 143 | Private 144 | 145 | 146 | False 147 | 148 | 149 | Private 150 | 151 | 152 | Private 153 | 154 | 155 | False 156 | 157 | 158 | Private 159 | 160 | 161 | Private 162 | 163 | 164 | False 165 | 166 | 167 | (Default) 168 | 169 | 170 | False 171 | 172 | 173 | False 174 | 175 | 176 | 8, 8 177 | 178 | 179 | True 180 | 181 | 182 | CheckOutErrorDialog 183 | 184 | 185 | 80 186 | 187 | 188 | True 189 | 190 | 191 | Private 192 | 193 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/ColorsForm.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/Forms/ColorsForm.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/ColorsForm.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | text/microsoft-resx 89 | 90 | 91 | 1.3 92 | 93 | 94 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 95 | 96 | 97 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 98 | 99 | 100 | FormColors 101 | 102 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/ConfigurationForm.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/Forms/ConfigurationForm.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/ExceptionForm.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/Forms/ExceptionForm.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/ExceptionForm.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | text/microsoft-resx 90 | 91 | 92 | 1.3 93 | 94 | 95 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 96 | 97 | 98 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 99 | 100 | 101 | False 102 | 103 | 104 | Private 105 | 106 | 107 | Private 108 | 109 | 110 | False 111 | 112 | 113 | Private 114 | 115 | 116 | Private 117 | 118 | 119 | False 120 | 121 | 122 | Private 123 | 124 | 125 | Private 126 | 127 | 128 | 129 | iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 130 | YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAT1JREFUWEfVVwEO 131 | hDAI05/v594wziBjtLhbLrfExCihpYDgviVO2bYjMq/v94Q7zlRA21XRj+jStpx3YCUOEejoPVIrhGYj 132 | RuSan5QaM1FPq7ECvJGiUrKaQCll3EUh+FEPW5CB7VkTHgkILk4ZEs0OkOiKckhAO0QkSFtXBVqBEQkS 133 | XNLYCNypoAovAkiA647IEZACZA9RrI80UAo0p4gEAd6lIUUgUoIE/3MCP00BAkffCZWiRytSNbCoDblW 134 | ZPqcsbkU0NFjAgnHboaczsgRsG2HWo0cRhJ5NxXhPEDg+mM1sHWj16ORKkiWiLGz4Pm94CWwHUCu/KtV 135 | gNLbDeXba3mLGkb/UEIqdUJ2L+fhUtrtafXByfjlr5mNOg3eqWHIaGL3/dXfryT3FHBJDEC8iKeijgiN 136 | wFJFdgF8AL/FLOGcdbJtAAAAAElFTkSuQmCC 137 | 138 | 139 | 140 | False 141 | 142 | 143 | True 144 | 145 | 146 | Private 147 | 148 | 149 | 8, 8 150 | 151 | 152 | True 153 | 154 | 155 | Private 156 | 157 | 158 | False 159 | 160 | 161 | Private 162 | 163 | 164 | Private 165 | 166 | 167 | Private 168 | 169 | 170 | False 171 | 172 | 173 | Private 174 | 175 | 176 | False 177 | 178 | 179 | (Default) 180 | 181 | 182 | False 183 | 184 | 185 | False 186 | 187 | 188 | 8, 8 189 | 190 | 191 | ExceptionForm 192 | 193 | 194 | True 195 | 196 | 197 | 80 198 | 199 | 200 | True 201 | 202 | 203 | Private 204 | 205 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/MainForm.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/Forms/MainForm.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/NoUpdateForm.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/Forms/NoUpdateForm.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/NoUpdateForm.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | text/microsoft-resx 90 | 91 | 92 | 1.3 93 | 94 | 95 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 96 | 97 | 98 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 99 | 100 | 101 | False 102 | 103 | 104 | Private 105 | 106 | 107 | Private 108 | 109 | 110 | False 111 | 112 | 113 | Private 114 | 115 | 116 | Private 117 | 118 | 119 | False 120 | 121 | 122 | Private 123 | 124 | 125 | Private 126 | 127 | 128 | False 129 | 130 | 131 | Private 132 | 133 | 134 | Private 135 | 136 | 137 | False 138 | 139 | 140 | Private 141 | 142 | 143 | Private 144 | 145 | 146 | False 147 | 148 | 149 | NoUpdateForm 150 | 151 | 152 | (Default) 153 | 154 | 155 | False 156 | 157 | 158 | False 159 | 160 | 161 | 8, 8 162 | 163 | 164 | True 165 | 166 | 167 | 80 168 | 169 | 170 | True 171 | 172 | 173 | Private 174 | 175 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/OperationSuccesForm.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/Forms/OperationSuccesForm.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/PromptUnsavedDocumentsDialog.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/Forms/PromptUnsavedDocumentsDialog.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/PromptUnsavedDocumentsDialog.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | text/microsoft-resx 90 | 91 | 92 | 1.3 93 | 94 | 95 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 96 | 97 | 98 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 99 | 100 | 101 | False 102 | 103 | 104 | Private 105 | 106 | 107 | Private 108 | 109 | 110 | Private 111 | 112 | 113 | False 114 | 115 | 116 | Private 117 | 118 | 119 | False 120 | 121 | 122 | Private 123 | 124 | 125 | Private 126 | 127 | 128 | False 129 | 130 | 131 | Private 132 | 133 | 134 | Private 135 | 136 | 137 | False 138 | 139 | 140 | Private 141 | 142 | 143 | Private 144 | 145 | 146 | False 147 | 148 | 149 | PromptUnsavedDocumentsDialog 150 | 151 | 152 | (Default) 153 | 154 | 155 | False 156 | 157 | 158 | False 159 | 160 | 161 | 8, 8 162 | 163 | 164 | True 165 | 166 | 167 | 80 168 | 169 | 170 | True 171 | 172 | 173 | Private 174 | 175 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/RemoveConfigurationsForm.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/Forms/RemoveConfigurationsForm.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/RemoveToolbarsForm.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/Forms/RemoveToolbarsForm.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/Forms/RemoveToolbarsForm.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | 123 | AAABAAEAICAQAAEABADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAgAIAAAAAAAAAAAAAAAAAAAAA 124 | AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP// 125 | AAD///8AAAAAAAAAAAiIAAAAAAAAAAAAAAAAAAiHd35gAAAAAAAAh/fwAACHd3d+ZnAAAAAAAI9/cIAI 126 | d3d35md3AAAAAACH9/B4CHd3d2Z3/wAAAAAAj39wh4d3d3dn///wAAAAAIf38HiHd3dwD/93cAAAAACP 127 | f3CHh3d3B3CIh3AAAAAAh/fweIiIiAdwd4iAAAAAAI9/cIeP937gB393cAAAAACP//B4j37miHd393AA 128 | AAAAj//wh4juaId3d38AAAAAAI//8Hh45mh3d3d3B3d3AACP//B3d4aId3d3cAAAd4AAj//wd3cIiHd3 129 | cAiIiHeAAI//8Hd3D/iIj///////gACIiIB3dwiIiIiIiIiIh4AAiIiAd3cAAAAAAAAAAABwCP//+Ad3 130 | CHd3d3d3d3d4AIiIiIiAdwj/////////eAAAAAiIiAcI9ERERERET3gAAAAAiIiACPTndmZszE94AAAA 131 | AAj//wj0/ndmZsxPeAAAAAAAiIiA9O/ndmZsT3gAAAAAAAAACPT+/ndmZk94AAAAAAAAAAj07+/ndmZP 132 | eAAAAAAAAAAI9H7+/ndmT3gAAAAAAAAACPR37+/ndk94AAAAAAAAAAj0d37+/ndPeAAAAAAAAAAI9ERE 133 | RERET3gAAAAAAAAACP////////94AAAAAAAAAACIiIiIiIiIiAD//gf/wPgB/8BwAP/AIAB/wAAAf8AA 134 | AD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAAPAAAABwAAAAMAAAADAAAAAwAAAAMAAAACAAAABAAAAAfgA 135 | AAH8AAAB/gAAAf8AAAH/+AAB//gAAf/4AAH/+AAB//gAAf/4AAH/+AAB//wAAw== 136 | 137 | 138 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/LabelWithDivider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/LabelWithDivider.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/ProjectsListView/AssemblyInfoListViewsControl.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/ProjectsListView/AssemblyInfoListViewsControl.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/ProjectsListView/ProjectsListView.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/ProjectsListView/ProjectsListView.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/ProjectsListView/ProjectsListView.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | text/microsoft-resx 32 | 33 | 34 | 1.0.0.0 35 | 36 | 37 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 38 | 39 | 40 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 41 | 42 | 43 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/SpinButton.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/SpinButton.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/VcbExportOptionsUserControl.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/VcbExportOptionsUserControl.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/VersionSelectUserControl.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/VersionSelectUserControl.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/VersionTextBox.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/VersionTextBox.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Gui/VersionUpDown.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Gui/VersionUpDown.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/GuiCommand.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Copyright (c) Company. All rights reserved. 4 | // 5 | //------------------------------------------------------------------------------ 6 | 7 | using System; 8 | using System.Collections; 9 | using System.ComponentModel.Design; 10 | using System.Diagnostics; 11 | using System.Globalization; 12 | using System.Resources; 13 | using System.Windows.Forms; 14 | using EnvDTE; 15 | using Microsoft.VisualStudio.Shell; 16 | using Microsoft.VisualStudio.Shell.Interop; 17 | 18 | namespace BuildAutoIncrement 19 | { 20 | /// 21 | /// Command handler 22 | /// 23 | internal sealed class GuiCommand : BaseCommand 24 | { 25 | 26 | /// 27 | /// Initializes a new instance of the class. 28 | /// Adds our command handlers for menu (commands must exist in the command table file) 29 | /// 30 | /// Owner package, not null. 31 | private GuiCommand(Package package) : base(package, 0x0300) { } 32 | 33 | /// 34 | /// Gets the instance of the command. 35 | /// 36 | public static GuiCommand Instance 37 | { 38 | get; 39 | private set; 40 | } 41 | 42 | /// 43 | /// Initializes the singleton instance of the command. 44 | /// 45 | /// Owner package, not null. 46 | public static void Initialize(Package package) 47 | { 48 | Instance = new GuiCommand(package); 49 | } 50 | 51 | /// 52 | /// This function is the callback used to execute the command when the menu item is clicked. 53 | /// See the constructor to see how the menu item is associated with this function using 54 | /// OleMenuCommandService service and MenuCommand class. 55 | /// 56 | /// Event sender. 57 | /// Event args. 58 | protected override void MenuItemCallback(object sender, EventArgs e) 59 | { 60 | base.PreMenuItemCallback(); 61 | 62 | using (MainForm mainForm = new MainForm(m_solutionBrowser)) 63 | { 64 | #if DEBUG 65 | mainForm.ShowInTaskbar = true; 66 | #endif 67 | WindowAdapter wa = new WindowAdapter(m_devEnvApplicationObject.MainWindow.HWnd.ToInt32()); 68 | if (mainForm.ShowDialog(wa) != DialogResult.Cancel) 69 | { 70 | ProjectInfo[] toCheckout = mainForm.MarkedProjects; 71 | m_solutionBrowser.CheckOutProjectVersionFiles(toCheckout); 72 | // setup projects have to be unloaded in order to avoid popup dialogs 73 | SetupProjectsLoader spl = new SetupProjectsLoader(m_devEnvApplicationObject); 74 | spl.UnloadSetupProjects(mainForm.MarkedProjects); 75 | mainForm.SaveVersions(); 76 | spl.ReloadSetupProjects(); 77 | if (mainForm.CommandToPerform.Length != 0) 78 | { 79 | m_devEnvApplicationObject.ExecuteCommand(mainForm.CommandToPerform, ""); 80 | } 81 | } 82 | } 83 | } 84 | 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Key.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Key.snk -------------------------------------------------------------------------------- /BuildAutoIncrement/PrintVersionsCommand.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Copyright (c) Company. All rights reserved. 4 | // 5 | //------------------------------------------------------------------------------ 6 | 7 | using System; 8 | using System.ComponentModel.Design; 9 | using System.Diagnostics; 10 | using System.Globalization; 11 | using EnvDTE; 12 | using Microsoft.VisualStudio.Shell; 13 | using Microsoft.VisualStudio.Shell.Interop; 14 | 15 | namespace BuildAutoIncrement 16 | { 17 | /// 18 | /// Command handler 19 | /// 20 | internal sealed class PrintVersionsCommand : BaseCommand 21 | { 22 | 23 | /// 24 | /// Initializes a new instance of the class. 25 | /// Adds our command handlers for menu (commands must exist in the command table file) 26 | /// 27 | /// Owner package, not null. 28 | private PrintVersionsCommand(Package package) : base(package, 0x0305) { } 29 | 30 | /// 31 | /// Gets the instance of the command. 32 | /// 33 | public static PrintVersionsCommand Instance 34 | { 35 | get; 36 | private set; 37 | } 38 | 39 | /// 40 | /// Initializes the singleton instance of the command. 41 | /// 42 | /// Owner package, not null. 43 | public static void Initialize(Package package) 44 | { 45 | Instance = new PrintVersionsCommand(package); 46 | } 47 | 48 | /// 49 | /// This function is the callback used to execute the command when the menu item is clicked. 50 | /// See the constructor to see how the menu item is associated with this function using 51 | /// OleMenuCommandService service and MenuCommand class. 52 | /// 53 | /// Event sender. 54 | /// Event args. 55 | protected override void MenuItemCallback(object sender, EventArgs e) 56 | { 57 | base.PreMenuItemCallback(); 58 | 59 | ListPrinter lp = new ListPrinter(new WindowAdapter(m_devEnvApplicationObject.MainWindow.HWnd.ToInt32())); 60 | lp.Print(string.Empty, m_solutionBrowser.SolutionName, m_solutionBrowser.ProjectInfoList); 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /BuildAutoIncrement/ProjectFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/ProjectFilter.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/ProjectInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/ProjectInfo.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/ProjectInfoList.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/ProjectInfoList.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/ProjectTypeInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/ProjectTypeInfo.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | // General Information about an assembly is controlled through the following 5 | // set of attributes. Change these attribute values to modify the information 6 | // associated with an assembly. 7 | [assembly: AssemblyTitle("BuildAutoIncrement")] 8 | [assembly: AssemblyDescription("")] 9 | [assembly: AssemblyConfiguration("")] 10 | [assembly: AssemblyCompany("")] 11 | [assembly: AssemblyProduct("BuildAutoIncrement")] 12 | [assembly: AssemblyCopyright("")] 13 | [assembly: AssemblyTrademark("")] 14 | [assembly: AssemblyCulture("")] 15 | 16 | // Setting ComVisible to false makes the types in this assembly not visible 17 | // to COM components. If you need to access a type in this assembly from 18 | // COM, set the ComVisible attribute to true on that type. 19 | [assembly: ComVisible(false)] 20 | 21 | // Version information for an assembly consists of the following four values: 22 | // 23 | // Major Version 24 | // Minor Version 25 | // Build Number 26 | // Revision 27 | // 28 | // You can specify all the values or you can default the Build and Revision Numbers 29 | // by using the '*' as shown below: 30 | // [assembly: AssemblyVersion("1.0.*")] 31 | [assembly: AssemblyVersion("1.3.1.0")] 32 | [assembly: AssemblyFileVersion("1.3.1.0")] 33 | -------------------------------------------------------------------------------- /BuildAutoIncrement/RebuildVersionsCommand.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Copyright (c) Company. All rights reserved. 4 | // 5 | //------------------------------------------------------------------------------ 6 | 7 | using System; 8 | using System.ComponentModel.Design; 9 | using System.Diagnostics; 10 | using System.Globalization; 11 | using System.Windows.Forms; 12 | using EnvDTE; 13 | using Microsoft.VisualStudio.Shell; 14 | using Microsoft.VisualStudio.Shell.Interop; 15 | 16 | namespace BuildAutoIncrement 17 | { 18 | /// 19 | /// Command handler 20 | /// 21 | internal sealed class RebuildVersionsCommand : BaseCommand 22 | { 23 | /// 24 | /// Initializes a new instance of the class. 25 | /// Adds our command handlers for menu (commands must exist in the command table file) 26 | /// 27 | /// Owner package, not null. 28 | private RebuildVersionsCommand(Package package) : base(package, 0x0302) { } 29 | 30 | /// 31 | /// Gets the instance of the command. 32 | /// 33 | public static RebuildVersionsCommand Instance 34 | { 35 | get; 36 | private set; 37 | } 38 | 39 | /// 40 | /// Initializes the singleton instance of the command. 41 | /// 42 | /// Owner package, not null. 43 | public static void Initialize(Package package) 44 | { 45 | Instance = new RebuildVersionsCommand(package); 46 | } 47 | 48 | /// 49 | /// This function is the callback used to execute the command when the menu item is clicked. 50 | /// See the constructor to see how the menu item is associated with this function using 51 | /// OleMenuCommandService service and MenuCommand class. 52 | /// 53 | /// Event sender. 54 | /// Event args. 55 | protected override void MenuItemCallback(object sender, EventArgs e) 56 | { 57 | base.PreMenuItemCallback(); 58 | 59 | m_solutionBrowser.CheckOutProjectVersionFiles(m_solutionBrowser.ProjectsToUpdate); 60 | SetupProjectsLoader spl = new SetupProjectsLoader(m_devEnvApplicationObject); 61 | spl.UnloadSetupProjects(m_solutionBrowser.ProjectsToUpdate); 62 | m_solutionBrowser.SaveVersions(); 63 | spl.ReloadSetupProjects(); 64 | 65 | bool runCommand = true; 66 | if (m_solutionBrowser.UpdateSummary.UpdatedItemsCount == 0) 67 | runCommand = NoUpdateForm.Show(new WindowAdapter(m_devEnvApplicationObject.MainWindow.HWnd.ToInt32())) == DialogResult.Yes; 68 | 69 | if (runCommand) 70 | m_devEnvApplicationObject.ExecuteCommand("Build.RebuildSolution", ""); 71 | 72 | if (m_solutionBrowser.UpdateSummary.UpdatedItemsCount > 0 && ConfigurationPersister.Instance.Configuration.DisplayOptions.ShowSuccessDialog) 73 | OperationSuccesForm.Show(new WindowAdapter(m_devEnvApplicationObject.MainWindow.HWnd.ToInt32()), m_solutionBrowser.UpdateSummary.SummaryItems); 74 | } 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/App.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/App.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/Bitmap1t.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/Bitmap1t.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/Bitmap2t.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/Bitmap2t.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/Bitmap3t.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/Bitmap3t.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/Bitmap4t.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/Bitmap4t.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/Bitmap5t.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/Bitmap5t.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/Bitmap6t.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/Bitmap6t.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/Bitmap7t.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/Bitmap7t.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/Buttons.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | Bitmap1t.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 123 | 124 | 125 | Bitmap2t.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 126 | 127 | 128 | Bitmap3t.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 129 | 130 | 131 | Bitmap4t.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 132 | 133 | 134 | Bitmap5t.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 135 | 136 | 137 | Bitmap6t.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 138 | 139 | 140 | Bitmap7t.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 141 | 142 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/CSharpProject.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/CSharpProject.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/CSharpProject.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/CSharpProject.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/CSharpProjectLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/CSharpProjectLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/CommandGUI.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/CommandGUI.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/DbProject.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/DbProject.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/DbProject.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/DbProject.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/DbProjectLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/DbProjectLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/EnterpriseTemplate.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/EnterpriseTemplate.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/EnterpriseTemplate.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/EnterpriseTemplate.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/EnterpriseTemplateLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/EnterpriseTemplateLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/FSharpProject.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/FSharpProject.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/FSharpProjectLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/FSharpProjectLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/GuiCommand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/GuiCommand.png -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/GuiCommandPackage.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/GuiCommandPackage.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/IconCommandGUI.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/IconCommandGUI.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/InstallShield.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/InstallShield.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/InstallShield.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/InstallShield.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/InstallShieldLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/InstallShieldLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/IntelCppLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/IntelCppLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/IntelCppProject.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/IntelCppProject.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/ResourceAccessor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace BuildAutoIncrement { 4 | /// 5 | /// Empty type used to access resources. 6 | /// 7 | public sealed class ResourceAccessor { 8 | } 9 | } -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/SetupProject.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/SetupProject.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/SetupProject.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/SetupProject.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/SetupProjectLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/SetupProjectLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/Shared.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | text/microsoft-resx 32 | 33 | 34 | 1.0.0.0 35 | 36 | 37 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 38 | 39 | 40 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 41 | 42 | 43 | Versioning Controlled Build GUI 44 | 45 | 46 | Error starting Versioning Controlled Build add-in 47 | 48 | 49 | &Build with Versions Updated 50 | 51 | 52 | &Rebuild with Versions Updated 53 | 54 | 55 | Build Solution with Updated Versions 56 | 57 | 58 | Rebuild Solution with Updated Versions 59 | 60 | 61 | Save &Updated Versions 62 | 63 | 64 | Update Versions 65 | 66 | 67 | You must restart VS IDE to make changes effective. 68 | 69 | 70 | Solution Versions 71 | 72 | 73 | &Settings... 74 | 75 | 76 | &About... 77 | 78 | 79 | Save Error 80 | 81 | 82 | Cannot save file: 83 | 84 | 85 | Check permissions and security settings. 86 | 87 | 88 | One or more selected project(s) have already higher version than one to be applied. 89 | 90 | 91 | Are you sure to continue? 92 | 93 | 94 | Cannot save configuration file: 95 | 96 | 97 | Versioning Controlled Build Error 98 | 99 | 100 | [Blank] 101 | 102 | 103 | <not found> 104 | 105 | 106 | <Version file not found> 107 | 108 | 109 | Versions successfully updated 110 | 111 | 112 | Version must not contain negative integers. 113 | 114 | 115 | Version may consist of non-negative integers or a single asterisk character only. 116 | 117 | 118 | Version must consist of at least {0} dot-separated components. 119 | 120 | 121 | String [{0}] is not a valid version. {1} 122 | 123 | 124 | Invalid version pattern [{0}] 125 | 126 | 127 | Version format error 128 | 129 | 130 | '*' may appear only at the end of version string and it must be a single. 131 | 132 | 133 | Version must not end with a dot character. 134 | 135 | 136 | <invalid> 137 | 138 | 139 | Version may consist of non-negative integers only. 140 | 141 | 142 | Version may not contain '*' character. 143 | 144 | 145 | Version must consist of at most {0} dot-separated components. 146 | 147 | 148 | File filter cannot contain any of the following characters: 149 | 150 | 151 | &GUI... 152 | 153 | 154 | &Settings... 155 | 156 | 157 | Configure VCB 158 | 159 | 160 | &About Versioning Controlled Build 161 | 162 | 163 | About Versioning Controlled Build 164 | 165 | 166 | Source Safe Executable|ss.exe 167 | 168 | 169 | Select SourceSafe Root Folder 170 | 171 | 172 | Select root folder of IIS projects 173 | 174 | 175 | Version overflow for '{0}' in project(s): {1} 176 | 177 | 178 | Failed to load settings from configuration file. 179 | 180 | 181 | Default settings will be used. 182 | 183 | 184 | Version must contain integers smaller than {0} 185 | 186 | 187 | &Print Versions... 188 | 189 | 190 | E&xport Versions to File... 191 | 192 | 193 | Print Versions 194 | 195 | 196 | Export Versions 197 | 198 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/VBProject.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/VBProject.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/VBProject.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/VBProject.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/VBProjectLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/VBProjectLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/VCB.AddIn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/VCB.AddIn -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/VCProject.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/VCProject.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/VCProject.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/VCProject.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/VCProjectLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/VCProjectLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/VJSharpProject.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/VJSharpProject.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/VJSharpProject.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/VJSharpProject.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/VJSharpProjectLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/VJSharpProjectLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/Versioning Controlled Build.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/Versioning Controlled Build.png -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/eCSharpProject.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/eCSharpProject.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/eCSharpProject.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/eCSharpProject.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/eCSharpProjectLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/eCSharpProjectLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/eVBProject.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/eVBProject.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/eVBProject.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/eVBProject.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/eVBProjectLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/eVBProjectLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/folder.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/folder.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/folder.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/folder.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/folderLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/folderLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/webproject.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/webproject.bmp -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/webproject.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/webproject.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/Resources/webprojectLight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Resources/webprojectLight.ico -------------------------------------------------------------------------------- /BuildAutoIncrement/SaveUpdatedVersionsCommand.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Copyright (c) Company. All rights reserved. 4 | // 5 | //------------------------------------------------------------------------------ 6 | 7 | using System; 8 | using System.ComponentModel.Design; 9 | using System.Diagnostics; 10 | using System.Globalization; 11 | using EnvDTE; 12 | using Microsoft.VisualStudio.Shell; 13 | using Microsoft.VisualStudio.Shell.Interop; 14 | 15 | namespace BuildAutoIncrement 16 | { 17 | /// 18 | /// Command handler 19 | /// 20 | internal sealed class SaveUpdatedVersionsCommand : BaseCommand 21 | { 22 | /// 23 | /// Initializes a new instance of the class. 24 | /// Adds our command handlers for menu (commands must exist in the command table file) 25 | /// 26 | /// Owner package, not null. 27 | private SaveUpdatedVersionsCommand(Package package) : base(package, 0x0303) { } 28 | 29 | /// 30 | /// Gets the instance of the command. 31 | /// 32 | public static SaveUpdatedVersionsCommand Instance 33 | { 34 | get; 35 | private set; 36 | } 37 | 38 | /// 39 | /// Initializes the singleton instance of the command. 40 | /// 41 | /// Owner package, not null. 42 | public static void Initialize(Package package) 43 | { 44 | Instance = new SaveUpdatedVersionsCommand(package); 45 | } 46 | 47 | /// 48 | /// This function is the callback used to execute the command when the menu item is clicked. 49 | /// See the constructor to see how the menu item is associated with this function using 50 | /// OleMenuCommandService service and MenuCommand class. 51 | /// 52 | /// Event sender. 53 | /// Event args. 54 | protected override void MenuItemCallback(object sender, EventArgs e) 55 | { 56 | base.PreMenuItemCallback(); 57 | 58 | m_solutionBrowser.CheckOutProjectVersionFiles(m_solutionBrowser.ProjectsToUpdate); 59 | SetupProjectsLoader spl = new SetupProjectsLoader(m_devEnvApplicationObject); 60 | spl.UnloadSetupProjects(m_solutionBrowser.ProjectsToUpdate); 61 | m_solutionBrowser.SaveVersions(); 62 | spl.ReloadSetupProjects(); 63 | 64 | if (m_solutionBrowser.UpdateSummary.UpdatedItemsCount == 0) 65 | NoUpdateForm.Show(new WindowAdapter(m_devEnvApplicationObject.MainWindow.HWnd.ToInt32())); 66 | 67 | if (m_solutionBrowser.UpdateSummary.UpdatedItemsCount > 0 && ConfigurationPersister.Instance.Configuration.DisplayOptions.ShowSuccessDialog) 68 | OperationSuccesForm.Show(new WindowAdapter(m_devEnvApplicationObject.MainWindow.HWnd.ToInt32()), m_solutionBrowser.UpdateSummary.SummaryItems); 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /BuildAutoIncrement/SaveVersionsCommand.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Copyright (c) Company. All rights reserved. 4 | // 5 | //------------------------------------------------------------------------------ 6 | 7 | using System; 8 | using System.ComponentModel.Design; 9 | using System.Diagnostics; 10 | using System.Globalization; 11 | using EnvDTE; 12 | using Microsoft.VisualStudio.Shell; 13 | using Microsoft.VisualStudio.Shell.Interop; 14 | 15 | namespace BuildAutoIncrement 16 | { 17 | /// 18 | /// Command handler 19 | /// 20 | internal sealed class SaveVersionsCommand : BaseCommand 21 | { 22 | /// 23 | /// Initializes a new instance of the class. 24 | /// Adds our command handlers for menu (commands must exist in the command table file) 25 | /// 26 | /// Owner package, not null. 27 | private SaveVersionsCommand(Package package) : base(package, 0x0304) { } 28 | 29 | /// 30 | /// Gets the instance of the command. 31 | /// 32 | public static SaveVersionsCommand Instance 33 | { 34 | get; 35 | private set; 36 | } 37 | 38 | /// 39 | /// Initializes the singleton instance of the command. 40 | /// 41 | /// Owner package, not null. 42 | public static void Initialize(Package package) 43 | { 44 | Instance = new SaveVersionsCommand(package); 45 | } 46 | 47 | /// 48 | /// This function is the callback used to execute the command when the menu item is clicked. 49 | /// See the constructor to see how the menu item is associated with this function using 50 | /// OleMenuCommandService service and MenuCommand class. 51 | /// 52 | /// Event sender. 53 | /// Event args. 54 | protected override void MenuItemCallback(object sender, EventArgs e) 55 | { 56 | base.PreMenuItemCallback(); 57 | 58 | ListExporterToFile lef = null; 59 | switch (ConfigurationPersister.Instance.Configuration.ExportConfiguration.ExportFileFormat) 60 | { 61 | case ExportFileFormat.PlainText: 62 | lef = new ListExporterToPlainTextFile(); 63 | break; 64 | case ExportFileFormat.CSV: 65 | lef = new ListExporterToCsvFile(); 66 | lef.Separator = ConfigurationPersister.Instance.Configuration.ExportConfiguration.CsvSeparator; 67 | break; 68 | default: 69 | Debug.Assert(false, "Not supported ExportFileFormat"); 70 | break; 71 | } 72 | lef.Export(m_solutionBrowser.SolutionName, m_solutionBrowser.SolutionFilename, m_solutionBrowser.ProjectInfoList); 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /BuildAutoIncrement/SolutionBrowser.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/SolutionBrowser.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/AddInFileInstaller.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Filename: AddInFileInstaller.cs 3 | * Product: Versioning Controlled Build 4 | * Solution: BuildAutoIncrement 5 | * Project: Shared 6 | * Description: Class responsible for adapting and placing .AddIn file. 7 | * Copyright: Julijan Šribar, 2004-2013 8 | * 9 | * This software is provided 'as-is', without any express or implied 10 | * warranty. In no event will the author(s) be held liable for any damages 11 | * arising from the use of this software. 12 | * 13 | * Permission is granted to anyone to use this software for any purpose, 14 | * including commercial applications, and to alter it and redistribute it 15 | * freely, subject to the following restrictions: 16 | * 17 | * 1. The origin of this software must not be misrepresented; you must not 18 | * claim that you wrote the original software. If you use this software 19 | * in a product, an acknowledgment in the product documentation would be 20 | * appreciated but is not required. 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 3. This notice may not be removed or altered from any source distribution. 24 | */ 25 | using System; 26 | using System.Diagnostics; 27 | using System.IO; 28 | using System.Reflection; 29 | using System.Text; 30 | using System.Windows.Forms; 31 | using System.Xml; 32 | 33 | namespace BuildAutoIncrement 34 | { 35 | /// 36 | /// Responsible to preparing and installing/uninstalling .AddIn file. 37 | /// 38 | class AddInFileInstaller 39 | { 40 | /// 41 | /// Creates XmlDocument from resource and adapts the target path. 42 | /// 43 | /// 44 | /// Full path to the target directory. 45 | /// 46 | public AddInFileInstaller(string addinFolder) 47 | { 48 | m_addInFile = LoadFromResource("BuildAutoIncrement.Resources.VCB.AddIn"); 49 | Debug.Assert(m_addInFile != null); 50 | AddaptAddInFileContent(addinFolder); 51 | } 52 | 53 | #region Public methods 54 | 55 | /// 56 | /// Modifies the content of the .AddIn file to contain the contain correct 57 | /// version of the HostApplication and places the file in corresponding folder 58 | /// for all or current user. 59 | /// 60 | /// 61 | /// true when addin is installed for all users, false for 62 | /// current user only. 63 | /// 64 | /// 65 | /// Path to folder where add-in is being installed. 66 | /// 67 | public string Install(bool allUsers, string devEnvVersion) 68 | { 69 | Debug.Assert(m_addInFile != null); 70 | try 71 | { 72 | SetVersionInAddInFile(devEnvVersion); 73 | string addinFileFolder = GetAddInFileFolder(allUsers, devEnvVersion); 74 | if (!Directory.Exists(addinFileFolder)) 75 | Directory.CreateDirectory(addinFileFolder); 76 | string fullPath = Path.Combine(addinFileFolder, "VCB.AddIn"); 77 | m_addInFile.Save(fullPath); 78 | return fullPath; 79 | } 80 | catch (Exception ex) 81 | { 82 | MessageBox.Show(ex.ToString()); 83 | return string.Empty; 84 | } 85 | } 86 | 87 | #endregion // Public methods 88 | 89 | #region Private methods 90 | 91 | /// 92 | /// Evaluates the folder for the .AddIn file considering the version of 93 | /// development environment and installation type (all users/current user only). 94 | /// 95 | /// 96 | /// true if addin is installed for all users, otherwise false. 97 | /// 98 | /// 99 | /// String representing version of development environment. 100 | /// 101 | /// 102 | /// Full path to the folder into which .AddIn file must be placed. 103 | /// 104 | private string GetAddInFileFolder(bool allUsers, string devEnvVersion) 105 | { 106 | string rootFolder = Environment.GetFolderPath((allUsers) ? Environment.SpecialFolder.CommonApplicationData : Environment.SpecialFolder.ApplicationData); 107 | string branchfolder = string.Format(@"Microsoft\VisualStudio\{0}\AddIns", devEnvVersion); 108 | return Path.Combine(rootFolder, branchfolder); 109 | } 110 | 111 | /// 112 | /// Loads XML file from embeded resource. 113 | /// 114 | /// 115 | /// Full name of the resource. 116 | /// 117 | /// 118 | /// XmlDocument object. 119 | /// 120 | private XmlDocument LoadFromResource(string resourceName) 121 | { 122 | Assembly assembly = Assembly.GetExecutingAssembly(); 123 | #if DEBUG 124 | string[] resourceNames = assembly.GetManifestResourceNames(); 125 | #endif 126 | using (Stream stream = assembly.GetManifestResourceStream(resourceName)) 127 | { 128 | XmlDocument doc = new XmlDocument(); 129 | doc.Load(stream); 130 | return doc; 131 | } 132 | } 133 | 134 | /// 135 | /// Adapts .AddIn file: 136 | /// Prepends folder to /Extensibility/Addin/Assembly element so that 137 | /// .AddIn file will point to the actual location where addin is installed. 138 | /// Modifies /Extensibility/Addin/CommandPreload element according to 139 | /// toolbar/menu installation type (temporary or permanent). 140 | /// 141 | /// 142 | /// Full path which must be prepended to assembly name. 143 | /// 144 | private void AddaptAddInFileContent(string addinFolder) 145 | { 146 | string ns = m_addInFile.DocumentElement.NamespaceURI; 147 | XmlNamespaceManager nsmgr = new XmlNamespaceManager(m_addInFile.NameTable); 148 | nsmgr.AddNamespace("ae", m_addInFile.DocumentElement.NamespaceURI); 149 | XmlElement assemblyNode = (XmlElement)m_addInFile.SelectSingleNode("/ae:Extensibility/ae:Addin/ae:Assembly", nsmgr); 150 | assemblyNode.InnerText = Path.Combine(addinFolder, assemblyNode.InnerText); 151 | // probably CommandPreload should be modified to 0 for temporary bars? 152 | //XmlElement preloadNode = (XmlElement)m_addInFile.SelectSingleNode("/ae:Extensibility/ae:Addin/ae:CommandPreload", nsmgr); 153 | //preloadNode.InnerText = "0"; 154 | } 155 | 156 | /// 157 | /// Sets Version element for a HostApplication. 158 | /// 159 | /// 160 | /// Version to set. 161 | /// 162 | private void SetVersionInAddInFile(string version) 163 | { 164 | string ns = m_addInFile.DocumentElement.NamespaceURI; 165 | XmlNamespaceManager nsmgr = new XmlNamespaceManager(m_addInFile.NameTable); 166 | nsmgr.AddNamespace("ae", m_addInFile.DocumentElement.NamespaceURI); 167 | XmlElement versionNode = (XmlElement)m_addInFile.SelectSingleNode("/ae:Extensibility/ae:HostApplication/ae:Version", nsmgr); 168 | versionNode.InnerText = version; 169 | } 170 | 171 | #endregion // Private methods 172 | 173 | private XmlDocument m_addInFile; 174 | } 175 | } 176 | -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/Exceptions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/Exceptions.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/FileUtil.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/FileUtil.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/ImplementationAssemblyLoader.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/ImplementationAssemblyLoader.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/InetRootLocator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/InetRootLocator.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/Installer.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace BuildAutoIncrement 2 | { 3 | partial class BuilAutoIncrementInstaller 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Component Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | components = new System.ComponentModel.Container(); 32 | } 33 | 34 | #endregion 35 | } 36 | } -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/InvalidFileFilterCharacters.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/InvalidFileFilterCharacters.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/MessageFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/MessageFilter.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/PermanentUIRemover.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/PermanentUIRemover.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/ProjectItemInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/ProjectItemInfo.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/ProjectsSortedArrayList.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/ProjectsSortedArrayList.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/SetupProjectsLoader.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/SetupProjectsLoader.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/SolutionExplorerSelector.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/SolutionExplorerSelector.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/SourceSafeCheckout.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/SourceSafeCheckout.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/SourceSafeLocator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/SourceSafeLocator.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/UpdateSummary.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/UpdateSummary.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/VisualStyles.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/VisualStyles.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/VssCheckout.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/VssCheckout.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/Win32Api.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/Win32Api.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/WindowAdapter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Util/WindowAdapter.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Util/WoW64RegistryKey.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | using System.Text; 4 | using System.Diagnostics; 5 | using System.ComponentModel; 6 | 7 | namespace BuildAutoIncrement 8 | { 9 | public class WoW64RegistryKey : IDisposable 10 | { 11 | #region kernel32.dll 12 | 13 | [DllImport("kernel32.dll")] 14 | private static extern void GetNativeSystemInfo(ref SYSTEM_INFO lpSystemInfo); 15 | 16 | #endregion // kernel32.dll 17 | 18 | #region advapi32.dll 19 | 20 | [DllImport("advapi32.dll", CharSet = CharSet.Unicode)] 21 | private static extern int RegOpenKeyEx(UIntPtr hKey, string subKey, int ulOptions, int samDesired, out UIntPtr hkResult); 22 | 23 | [DllImport("advapi32.dll", CharSet = CharSet.Unicode, EntryPoint = "RegQueryValueExW", SetLastError = true)] 24 | private static extern int RegQueryValueEx(UIntPtr hKey, string lpValueName, int lpReserved, out uint lpType, System.Text.StringBuilder lpData, ref int lpcbData); 25 | 26 | [DllImport("advapi32.dll", SetLastError = true)] 27 | private static extern int RegCloseKey(UIntPtr hKey); 28 | 29 | #endregion // advapi32.dll 30 | 31 | #region Constants 32 | 33 | public static UIntPtr HKEY_LOCAL_MACHINE = new UIntPtr(0x80000002u); 34 | public static UIntPtr HKEY_CURRENT_USER = new UIntPtr(0x80000001u); 35 | 36 | private enum ProcessorArchitecture : ushort 37 | { 38 | Intel = 0, 39 | IA64 = 6, 40 | AMD64 = 9, 41 | Unknown = 0xFFFF 42 | } 43 | 44 | private enum KeyWow64 : int 45 | { 46 | WOW64_64KEY = 0x0100, 47 | WOW64_32KEY = 0x0200 48 | } 49 | 50 | private enum RegistryAccess : int 51 | { 52 | DELETE = 0x00010000, 53 | READ_CONTROL = 0x00020000, 54 | WRITE_DAC = 0x00040000, 55 | WRITE_OWNER = 0x00080000, 56 | SYNCHRONIZE = 0x00100000, 57 | 58 | STANDARD_RIGHTS_REQUIRED = 0x000F0000, 59 | 60 | STANDARD_RIGHTS_READ = READ_CONTROL, 61 | STANDARD_RIGHTS_WRITE = READ_CONTROL, 62 | STANDARD_RIGHTS_EXECUTE = READ_CONTROL, 63 | 64 | STANDARD_RIGHTS_ALL = 0x001F0000, 65 | SPECIFIC_RIGHTS_ALL = 0x0000FFFF, 66 | 67 | KEY_QUERY_VALUE = 0x0001, 68 | KEY_SET_VALUE = 0x0002, 69 | KEY_CREATE_SUB_KEY = 0x0004, 70 | KEY_ENUMERATE_SUB_KEYS = 0x0008, 71 | KEY_NOTIFY = 0x0010, 72 | KEY_CREATE_LINK = 0x0020, 73 | 74 | KEY_READ = ((STANDARD_RIGHTS_READ | KEY_QUERY_VALUE | KEY_ENUMERATE_SUB_KEYS | KEY_NOTIFY) & (~SYNCHRONIZE)), 75 | KEY_WRITE = ((STANDARD_RIGHTS_WRITE | KEY_SET_VALUE | KEY_CREATE_SUB_KEY) & (~SYNCHRONIZE)), 76 | KEY_EXECUTE = ((KEY_READ) & (~SYNCHRONIZE)), 77 | KEY_ALL_ACCESS = ((STANDARD_RIGHTS_ALL | KEY_QUERY_VALUE | KEY_SET_VALUE | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS | KEY_NOTIFY | KEY_CREATE_LINK) & (~SYNCHRONIZE)), 78 | } 79 | 80 | #endregion // Constants 81 | 82 | #region Structures 83 | 84 | [StructLayout(LayoutKind.Sequential)] 85 | public struct SYSTEM_INFO 86 | { 87 | public ushort wProcessorArchitecture; 88 | public ushort wReserved; 89 | public uint dwPageSize; 90 | public IntPtr lpMinimumApplicationAddress; 91 | public IntPtr lpMaximumApplicationAddress; 92 | public UIntPtr dwActiveProcessorMask; 93 | public uint dwNumberOfProcessors; 94 | public uint dwProcessorType; 95 | public uint dwAllocationGranularity; 96 | public ushort wProcessorLevel; 97 | public ushort wProcessorRevision; 98 | }; 99 | 100 | #endregion // Structures 101 | 102 | ~WoW64RegistryKey() { 103 | Dispose(false); 104 | } 105 | 106 | #region IDisposable Members 107 | 108 | public void Dispose() { 109 | Dispose(true); 110 | GC.SuppressFinalize(this); 111 | } 112 | 113 | protected virtual void Dispose(bool disposing) { 114 | if (!m_disposed) { 115 | Close(); 116 | m_disposed = true; 117 | } 118 | } 119 | 120 | #endregion 121 | 122 | public void Open(UIntPtr rootKey, string keyPath) { 123 | Debug.Assert(rootKey == HKEY_LOCAL_MACHINE || rootKey == HKEY_CURRENT_USER); 124 | 125 | int samDesired = (int)(RegistryAccess.KEY_READ); 126 | if (IsWin64()) 127 | samDesired |= (int)(KeyWow64.WOW64_32KEY); 128 | 129 | int errorCode = RegOpenKeyEx(rootKey, keyPath, 0, samDesired, out m_hKey); 130 | if (errorCode != 0) 131 | throw new Win32Exception(errorCode); 132 | } 133 | 134 | public string ReadString(string valueName) 135 | { 136 | int size = 0; 137 | uint type; 138 | StringBuilder keyBuffer = null; 139 | RegQueryValueEx(m_hKey, valueName, 0, out type, keyBuffer, ref size); 140 | 141 | keyBuffer = new StringBuilder(size); 142 | int errorCode = RegQueryValueEx(m_hKey, valueName, 0, out type, keyBuffer, ref size); 143 | if (errorCode != 0) 144 | throw new Win32Exception(errorCode); 145 | return keyBuffer.ToString(); 146 | } 147 | 148 | public void Close() { 149 | RegCloseKey(m_hKey); 150 | } 151 | 152 | private bool IsWin64() 153 | { 154 | // all versions up to Win2000 155 | if (System.Environment.OSVersion.Version.Major < 5 || (System.Environment.OSVersion.Version.Major == 5 && System.Environment.OSVersion.Version.Minor == 0)) 156 | return false; 157 | 158 | SYSTEM_INFO sysInfo = new SYSTEM_INFO(); 159 | GetNativeSystemInfo(ref sysInfo); 160 | 161 | switch ((ProcessorArchitecture)sysInfo.wProcessorArchitecture) 162 | { 163 | case ProcessorArchitecture.AMD64: 164 | case ProcessorArchitecture.IA64: 165 | return true; 166 | case ProcessorArchitecture.Intel: 167 | return false; 168 | } 169 | return false; 170 | } 171 | 172 | 173 | private UIntPtr m_hKey = UIntPtr.Zero; 174 | private bool m_disposed = false; 175 | 176 | } 177 | } 178 | -------------------------------------------------------------------------------- /BuildAutoIncrement/VSPackage.resx: -------------------------------------------------------------------------------- 1 |  2 | 12 | 13 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | text/microsoft-resx 120 | 121 | 122 | 2.0 123 | 124 | 125 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 126 | 127 | 128 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 129 | 130 | 131 | 132 | GuiCommand Extension 133 | 134 | 135 | GuiCommand Visual Studio Extension Detailed Info 136 | 137 | 138 | Resources\GuiCommandPackage.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 139 | 140 | -------------------------------------------------------------------------------- /BuildAutoIncrement/VSSolutionBrowser.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/VSSolutionBrowser.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/VcbCommandPackage.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Copyright (c) Company. All rights reserved. 4 | // 5 | //------------------------------------------------------------------------------ 6 | 7 | using System; 8 | using System.ComponentModel.Design; 9 | using System.Diagnostics; 10 | using System.Diagnostics.CodeAnalysis; 11 | using System.Globalization; 12 | using System.Runtime.InteropServices; 13 | using System.Threading; 14 | using System.Threading.Tasks; 15 | using Microsoft.VisualStudio; 16 | using Microsoft.VisualStudio.OLE.Interop; 17 | using Microsoft.VisualStudio.Shell; 18 | using Microsoft.VisualStudio.Shell.Interop; 19 | using Microsoft.Win32; 20 | 21 | namespace BuildAutoIncrement 22 | { 23 | /// 24 | /// This is the class that implements the package exposed by this assembly. 25 | /// 26 | /// 27 | /// 28 | /// The minimum requirement for a class to be considered a valid package for Visual Studio 29 | /// is to implement the IVsPackage interface and register itself with the shell. 30 | /// This package uses the helper classes defined inside the Managed Package Framework (MPF) 31 | /// to do it: it derives from the Package class that provides the implementation of the 32 | /// IVsPackage interface and uses the registration attributes defined in the framework to 33 | /// register itself and its components with the shell. These attributes tell the pkgdef creation 34 | /// utility what data to put into .pkgdef file. 35 | /// 36 | /// 37 | /// To get loaded into VS, the package must be referred by <Asset Type="Microsoft.VisualStudio.VsPackage" ...> in .vsixmanifest file. 38 | /// 39 | /// 40 | [PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)] 41 | [InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)] // Info on this package for Help/About 42 | [ProvideMenuResource("Menus.ctmenu", 1)] 43 | [Guid(VcbCommandPackage.PackageGuidString)] 44 | [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1650:ElementDocumentationMustBeSpelledCorrectly", Justification = "pkgdef, VS and vsixmanifest are valid VS terms")] 45 | public sealed class VcbCommandPackage : AsyncPackage 46 | { 47 | /// 48 | /// VcbCommandPackage GUID string. 49 | /// 50 | public const string PackageGuidString = "69ed5368-af96-43e4-a44d-a0d32097a717"; 51 | 52 | /// 53 | /// Initializes a new instance of the class. 54 | /// 55 | public VcbCommandPackage() 56 | { 57 | // Inside this method you can place any initialization code that does not require 58 | // any Visual Studio service because at this point the package object is created but 59 | // not sited yet inside Visual Studio environment. The place to do all the other 60 | // initialization is the Initialize method. 61 | } 62 | 63 | #region Package Members 64 | 65 | protected override async System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress progress) 66 | { 67 | GuiCommand.Initialize(this); 68 | BuildVersionsCommand.Initialize(this); 69 | RebuildVersionsCommand.Initialize(this); 70 | SaveUpdatedVersionsCommand.Initialize(this); 71 | SaveVersionsCommand.Initialize(this); 72 | PrintVersionsCommand.Initialize(this); 73 | ConfigureCommand.Initialize(this); 74 | AboutCommand.Initialize(this); 75 | 76 | await base.InitializeAsync(cancellationToken, progress); 77 | } 78 | #endregion 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /BuildAutoIncrement/VcbCommandPackage.vsct: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 9 | 10 | 16 | 17 | 18 | 19 | 20 | 22 | 23 | 30 | 31 | 32 | 33 | 34 | 35 | VCB 36 | 37 | 38 | 39 | 40 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 60 | 69 | 78 | 87 | 96 | 105 | 113 | 120 | 121 | 122 | 123 | 124 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | -------------------------------------------------------------------------------- /BuildAutoIncrement/VersionStreams/AssemblyInfoStream.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/VersionStreams/AssemblyInfoStream.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/VersionStreams/InstallShieldLEVersionStream.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Filename: InstallShieldLEVersionStream.cs 3 | * Product: Versioning Controlled Build 4 | * Solution: BuildAutoIncrement 5 | * Project: Shared 6 | * Description: Reads and writes versions from/to InstallShield LE files. 7 | * Copyright: Julijan Šribar, 2004-2013 8 | * 9 | * This software is provided 'as-is', without any express or implied 10 | * warranty. In no event will the author(s) be held liable for any damages 11 | * arising from the use of this software. 12 | * 13 | * Permission is granted to anyone to use this software for any purpose, 14 | * including commercial applications, and to alter it and redistribute it 15 | * freely, subject to the following restrictions: 16 | * 17 | * 1. The origin of this software must not be misrepresented; you must not 18 | * claim that you wrote the original software. If you use this software 19 | * in a product, an acknowledgment in the product documentation would be 20 | * appreciated but is not required. 21 | * 2. Altered source versions must be plainly marked as such, and must not be 22 | * misrepresented as being the original software. 23 | * 3. This notice may not be removed or altered from any source distribution. 24 | */ 25 | using System.Collections; 26 | using System.Diagnostics; 27 | using System.Text.RegularExpressions; 28 | 29 | namespace BuildAutoIncrement 30 | { 31 | public class InstallShieldLEVersionStream : VersionStreamWGuid 32 | { 33 | #region Constructors 34 | 35 | public InstallShieldLEVersionStream(string filename) 36 | : base(filename) 37 | { 38 | } 39 | 40 | #endregion // Constructors 41 | 42 | #region Protected methods 43 | 44 | protected override string VersionPattern 45 | { 46 | get { return RegExVersionPattern; } 47 | } 48 | 49 | protected override string ProductVersionLinePattern 50 | { 51 | get { return OptionalWhitespacePattern + "ProductVersion" + RegExVersionPattern + ""; } 52 | } 53 | 54 | protected override void ModifyPackageAndProductCodes() 55 | { 56 | ModifyGuid(RegExProductCodeLinePattern); 57 | } 58 | 59 | #endregion // Protected methods 60 | 61 | #region Private fields 62 | 63 | private const string RegExVersionPattern = @"([0-9]+)([\.][0-9]+){1,3}"; 64 | private const string RegExProductCodeLinePattern = @"\s*ProductCode{[0-9,A-F]{8}-[0-9,A-F]{4}-[0-9,A-F]{4}-[0-9,A-F]{4}-[0-9,A-F]{12}}"; 65 | 66 | #endregion // Private fields 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /BuildAutoIncrement/VersionStreams/ResourceFileStream.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/VersionStreams/ResourceFileStream.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/VersionStreams/SetupVersionStream.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/VersionStreams/SetupVersionStream.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/VersionStreams/VersionStream.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/VersionStreams/VersionStream.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/VersionStreams/VersionStreamWGuid.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/VersionStreams/VersionStreamWGuid.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Versions/AssemblyVersions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Versions/AssemblyVersions.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Versions/NewVersionProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Versions/NewVersionProvider.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/Versions/ProjectVersion.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/BuildAutoIncrement/Versions/ProjectVersion.cs -------------------------------------------------------------------------------- /BuildAutoIncrement/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /BuildAutoIncrement/changelog.txt: -------------------------------------------------------------------------------- 1 | Release Notes: 2 | 3 | V1.0.0 2016-04-03: 4 | - Transformed the excellent Versioning Controlled Build Add-in from Julijan Sribar to be used in Visual Studio 2015. 5 | 6 | V1.0.0.2 7 | - Bug fix. Buttons used to disappear when one of the command buttons was clicked. 8 | 9 | V1.1.0 10 | - Added an extra way to try and checkout files via the Visual Studio Shell Interop. This should checkout files without showing a dialog. 11 | 12 | V1.2.0 2017-03-01 13 | - VS 2017 support 14 | 15 | V1.2.1 2017-03-05 16 | - I accidentally removed VS 2015 support in the previous build. Turned out it was more difficult to support both in one package than I thought. Eventually it all worked out. So this version supports both VS2015 and VS2017. 17 | 18 | V1.2.2 19 | - VS 2019 support 20 | 21 | V1.3.0 22 | - VS 2022 support -------------------------------------------------------------------------------- /BuildAutoIncrement/license.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Guido Neele 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /BuildAutoIncrement/readme.txt: -------------------------------------------------------------------------------- 1 | See http://www.codeproject.com/Articles/5851/Versioning-Controlled-Build for an excellent article about using this add-in. -------------------------------------------------------------------------------- /BuildAutoIncrement/source.extension.vsixmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Versioning Controlled Build 2022 6 | A Visual Studio add-in that automates versioning of .NET and VC++ projects 7 | http://neele.name/versioning-controlled-build 8 | license.txt 9 | readme.txt 10 | changelog.txt 11 | Resources\Bitmap1t.bmp 12 | Resources\Versioning Controlled Build.png 13 | Versioning, Versioning Manager, Version Control 14 | 15 | 16 | 17 | amd64 18 | 19 | 20 | amd64 21 | 22 | 23 | amd64 24 | 25 | 26 | arm64 27 | 28 | 29 | arm64 30 | 31 | 32 | arm64 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # VersioningControlledBuild 2 | A Visual Studio add-in that automates versioning of .NET Framework and VC++ projects. The add-in is virtually a copy of the excellent add-in by Julijan Sribar (http://www.codeproject.com/Articles/5851/Versioning-Controlled-Build). The only thing I did was make it work with Visual Studio 2015 by transforming the add-in to a VSIX package. All credits go to Julijan. 3 | 4 | For details on using this add-in I can recommend reading the article on CodeProject http://www.codeproject.com/Articles/5851/Versioning-Controlled-Build 5 | -------------------------------------------------------------------------------- /Runtime/MultiTabColorPicker.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuidoNeele/VersioningControlledBuild/694d0aea0ff95a485db417b7c9dc09ca28701c90/Runtime/MultiTabColorPicker.dll --------------------------------------------------------------------------------