We demonstrated the AssemblyInfo Updater of RevitAddinWidget previously. Now let us look at a small but useful feature of it.
Try to right click the mouse button within the Expected Info group box but outside of those editable text boxes and see what will come up.
A context menu will appear and it has two commands, Export and Import.
If the Export is pressed, the current Expected Info will be exported as an external file to the current user data roaming folder. The file name is RawAssemblyInfo.DAT and it is in XML format actually. It will look like the following if the Export button is pressed in this case:
<?xml version="1.0" encoding="utf-8"?>
<ProjectAssemblyInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Title>This is Title</Title>
<Description>This is Description</Description>
<Configuration>This is Configuration</Configuration>
<Company>This is Company</Company>
<Product>This is Product</Product>
<Copyright>This is Copyright</Copyright>
<Trademark>This is Trademark</Trademark>
<Culture>This is Culture</Culture>
</ProjectAssemblyInfo>
It is not recommended to manually create or modify the data file, but the widget will take it if nothing about the XML schema and the file name/location is broken.
Then when the Import button is pressed for another AssemblyInfo file (or project), the previously exported assembly Expected Info will be imported into the current Expected Info of the current AssemblyInfo depending on the options in the What to Import box:
It will save a lot of duplicate typing work as it is unlikely that those Configuration, Company, Product, Copyright and Trademark attributes will be different for different projects in a single solution. The better thing is that the checked options will be kept for the life of the AssemblyInfo Updater session, so it saves some checking and unchecking actions as well.
If readers think different about it or want something different or more, please feel free to comment.
AssemblyInfo Updater of RevitAddinWidget can help review popular assembly information of all available projects currently C#, VB.NET and C++ in a Visual Studio solution and update the information conveniently and flexibly in a single central place.
Recent Comments