From this post on, let us look at something about .NET assembly information.
The assembly information is composed of some assembly attributes, for example, AssemblyTitle, AssemblyDescription, AssemblyCompany, and so on. They look very simple but a few are actually quite complicated. Some are popular and mandatory for all .NET assemblies and some are optional and rare used.
Let us start from the most straightforward part in this post.
Here are some common assembly attributes that specify the general information about a .NET assembly in the AssemblyInfo.CS of a C# project:
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Here is the VB.NET version in the file AssemblyInfo.VB of VB.NET projects.
<Assembly: AssemblyTitle("")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("")>
<Assembly: AssemblyCopyright("")>
<Assembly: AssemblyTrademark("")>
As can be noticed, the AssemblyConfiguration and the AssemblyCulture attributes are not put there by default by VB.NET project wizards. It does not hurt to add them in manually though if necessary.
Here is the C++ version in the AssemblyInfo.CPP of C++ projects.
[assembly:AssemblyTitleAttribute("")];
[assembly:AssemblyDescriptionAttribute("")];
[assembly:AssemblyConfigurationAttribute("")];
[assembly:AssemblyCompanyAttribute("")];
[assembly:AssemblyProductAttribute("")];
[assembly:AssemblyCopyrightAttribute("")];
[assembly:AssemblyTrademarkAttribute("")];
[assembly:AssemblyCultureAttribute("")];
Q: What are these arributes used for?
A: It can not be fully answered in this simple and startup post, but we can sort out a few most popular ones right away through checking on the Assembly Properties dialog of the Explorer program provided by the Windows OS.
Supposing we have the following assembly attributes specified for a .NET DLL:
[assembly: AssemblyTitle("This is Title")]
[assembly: AssemblyDescription("This is Description")]
[assembly: AssemblyConfiguration("This is Configuration")]
[assembly: AssemblyCompany("This is Company")]
[assembly: AssemblyProduct("This is Product")]
[assembly: AssemblyCopyright("This is Copyright")]
[assembly: AssemblyTrademark("This is Trademark")]
[assembly: AssemblyCulture("This is Culture")]
The Details of the DLL Properties will look like:
As can be seen, the AssemblyTitle attribute indicates the File description in the UI; the AssemblyProduct attribute is the counterpart of the Product name property; the AssemblyCopyright one specifies the Copyright information; the AssemblyTrademark of the AssemblyInfo will be interpreted as the Legal trademarks of the resulting DLL by the Explorer.
In terms of other assembly attributes that have appeared or not yet, we will introduce them in detail in some future posts. Please stay tuned.
AssemblyInfo Updater of RevitAddinWidget can help review popular assembly attributes of all available projects in a Visual Studio solution and update the information conveniently and flexibly in a single central place.
Recent Comments