471,319 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

Guidelines for AssemblyInfo.cs?

I wonder if there's any offical document on how to fill in these values
in the AssemblyInfo.cs file?

[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Second best would be some examples of good practice.

I also wonder how these values are used, except being shown in the file
properties of DLL and EXE files? Are they meant for the eye only?

Gustaf
Dec 7 '05 #1
3 10763
one example i know is use of reflection for finding out the culture of given
assembly.
in my understanding assembly attribute is mostly used for house keeping of
assembly. at least we use in our projects for automating many things (e.g.
moving/merging of files or projects, bin list display on internal developent
servers).

for the use, i wonder if there are any 'good practice' docs. we use this way

AssemblyTitle = name of asm
AssemblyDescription = as it says description/details of asm
AssemblyConfiguration = related to settings, sometimes we put setting
details but usually it is empty
AssemblyCompany = name of our company/project etc
AssemblyProduct = as it says name of the product
AssemblyCopyright = legal stuff
AssemblyTrademark = again legal stuff
AssemblyCulture = e.g. en for english th for thai etc

Tx.

"Gustaf" <gu*****@algonet.se> wrote in message
news:uy****************@TK2MSFTNGP11.phx.gbl...
I wonder if there's any offical document on how to fill in these values in
the AssemblyInfo.cs file?

[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Second best would be some examples of good practice.

I also wonder how these values are used, except being shown in the file
properties of DLL and EXE files? Are they meant for the eye only?

Gustaf

Dec 7 '05 #2
The only one of those that "matters" (has any effect on runtime
behavior) is AssemblyCulture. The rest of them are just notes for humans.

The "official" document can be found at:
http://msdn.microsoft.com/library/de...asp?frame=true

The proper class names for these attributes have the word Attribute at
the end. So, to look up documentation on AssemblyTitle, search for
AssemblyTitleAttribute. The documentation will give you a general idea
of how they should be filled out.
Joshua Flanagan
http://flimflan.com/blog
Dec 7 '05 #3
I use Company Product and Version to setup/read values inside registry.
string _stAppKeyPath = "SOFTWARE\\" + Application.CompanyName + "\\" +
Application.ProductName + "\\" + Application.ProductVersion;

this._RegConf = new AppRegConfiguration(_stAppKeyPath);

AppRegConfiguration is a class that reads values from registry under a
specified key

Dec 7 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Robert Scheer | last post: by
2 posts views Thread by MrNobody | last post: by
5 posts views Thread by c8prog | last post: by
reply views Thread by Van Tumour | last post: by
4 posts views Thread by Jeff Ptak | last post: by
1 post views Thread by Oenone | last post: by
reply views Thread by The Coder | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.