We demonstrated AssemblyInfo Updater of RevitAddinWidget previously. Now let us look at another related small widget of RevitAddinWidget, Assembly Versioner, which can help us manage assembly version attributes.
It can review and update some assembly version attributes such as AssemblyVersion and AssemblyFileVersion attributes in a central place. We can use the widget to loop through all available AssemblyInfo files in C#, VB.NET and C++ projects in a single dialog, review the assembly version attributes, and update any of them if necessary.
The Assembly Versioner can be found from the RevitAddinWidget toolbar:
RevitAddinWidget Toolbar
or the RevitAddinWidget menu:
RevitAddinWidget Menu
The Assembly Versioner window looks like:
The first line displays the current AssemblyInfo file information and in turn the project information.
The four nice little recorder buttons are self explanatory. If any is not clear enough in case, hovering the cursor on it makes things clear as crystal.
The fields on the right column are editable. If any expected fields are not the same as the original attributes, the AssemblyInfo file will be updated accordingly when the OK button is pressed.
With the widget handy, we do not have to seek each AssemblyInfo file manually one by one from the whole solution, find the assembly version attributes of interest, compare some version attributes in different projects when necessary, or update some version attribute values manually. If we really choose to do so manually, we have to know and remember the different looking of the version attributes in different kinds of project.
Even if we use the Assembly Information dialog that is provided by Visual Studio IDE, things will not become easier. We have to find the project of interest and/or set it current first, open its Project Properties dialog next with right clicking mouse or choosing the menu item Project -> ABC Properties, and finally find which button to launch the Assembly Information dialog. And the UI for the C++ project seems not interested in the hide and seek game at all, nowhere to open the Assembly Information dialog in the multiple Project Property Pages of C++ projects.
And the Visual Studio IDE treats different kinds of the AssemblyInfo files differently. For example, the VB.NET AssemblyInfo files are generally hidden by the Visual Studio Solution Explorer. We have to turn on the Show All Files option for EACH VB.NET project to make its AssemblyInfo.VB show up! It is really inconsistent and inconvenient, isn’t it? But that is the real world! Do not worry about it anymore. The AssemblyInfo Versioner makes our life much easier regarding these assembly version attributes of various project kinds.
Now let us look at the little nice thing, the Apply to All Expected Versions button. It is supposed to copy the current version settings from the current project to all others. It will be useful and save quite some efforts as likely assemblies in a single solution have the same version numbers.
If some more version attributes and/or more project types are needed on your ends, or something you’d like to see different about the Assembly Versioner, please feel free to comment.
AssemblyInfo Updater of RevitAddinWidget can help review assembly version information of all available projects currently C#, VB.NET and C++ in a Visual Studio solution and update the version information conveniently and flexibly in a single central place with a single click.
Recent Comments