It's quite easy to read some metadata of an assembly, just load the Assembly
and then get the custom attributes, for example:
Assembly assembly = Assembly.GetExecutingAssembly();
AssemblyTitleAttribute? attribute = assembly.GetCustomAttribute<AssemblyTitleAttribute>();
string? title = attribute?.Title;
You can replace the AssemblyTitleAttribute
by a few others like Copyright
, Trademark
, Description
, Version
but I'm unable to find something for the Authors
(this metadata can be set at the same location than the other, on the package Tab of the project's solution).
Any idea why this attribute is missing and how it would be possible to read it's value? (I'm using dotnet standard 2.1)