Visual Studio generates this set of attributes for a C# assembly by default:
[assembly: AssemblyTitle("ContosoApp")]
[assembly: AssemblyDescription("Contoso's latest great product.")]
#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyConfiguration("Release")]
#endif
[assembly: AssemblyCompany("Contoso Corporation")]
[assembly: AssemblyProduct("ContosoApp Suite")]
[assembly: AssemblyCopyright("Copyright © Contoso 2012")]
[assembly: AssemblyTrademark("")] // ??
[assembly: AssemblyCulture("")]
I have no idea what makes "Trademark" different from "Company" here. What should be placed here?
Assembly attributes like that must be before any namespace or class (or other type) declarations in the code file in question. Save this answer. Show activity on this post. I'd usually put it outside of any class declarations, and indeed namespace declarations.
Assembly attributes are values that provide information about an assembly. The attributes are divided into the following sets of information: Assembly identity attributes. Informational attributes.
An assembly manifest contains all the metadata needed to specify the assembly's version requirements and security identity, and all metadata needed to define the scope of the assembly and resolve references to resources and classes.
We have three fields of interest here: company name, product name and trademark.
The company name is quite obvious what it is, and so is the product name. The trademark, however, is more ambiguous. According to this article the trademark could either be:
A product name can be protected IP if you have registered it as a trademark. Microsoft Office is a great example of a protected product name/trademark. In this case only you as the owner may use the product name for your products. By default, however, a product name is not protected IP and can be used by any person or company that wish to use it.
In your case you have a registered (and protected) product name or trademark and it seems very reasonable to use that for both AssemblyProduct
and AssemblyTrademark
. In case you your product name would not be protected IP it feels unreasonable to put it in the AssemblyTrademark
as others may use this product name as well. In this case I would put my company name or leave it empty.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With