473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 10909
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert Scheer | last post by:
Hi. I tried to compile a windows forms app without the assemblyinfo.vb file, and it compiled ok. So, if I delete the assemblyinfo.vb file from my project what kinds of problems would I have? ...
2
by: MrNobody | last post by:
I'm trying to figure out how to handle versioning for my app when I found a web site talking about AssemblyInfo.cs. They say all new .NET projects get this file and it comes with automated...
5
by: c8prog | last post by:
I'm using dotnetframework 1.1. By the way, I don't know how to read the information of AssemblyInfo.cs file. I wish to read it. The following Example Files. File 1: AssemblyInfo.cs using...
0
by: Van Tumour | last post by:
I have a basic Windows Form Application (.NET) using VS2003 and C++. I modify AssemblyInfo.cpp so the appropriate line now reads: ; In my application I use the following code: ...
5
by: David | last post by:
Hello, I really need help. I use C++ VisualStudio.net version 2002. I tried to create a very simple console app. However, it won't compile, then I found out that I am missing two important...
4
by: Jeff Ptak | last post by:
Hey all, Can anyone show me the proper C# syntax necessary to read the attribute fields from the AssemblyInfo.cs file? I have the following in VB.Net, but so far am unsuccessful in translating...
1
by: Oenone | last post by:
In all the projects I have upgraded from VS2003 to VS2005, the AssemblyInfo.vb file appears as a normal source file in the Solution Explorer (just as it did in VS2003). In new projects created...
2
by: James Wong | last post by:
Hi everybody, I would like to know how to retrieve information from AssemblyInfo.vb inside web service. I've tried many different ways including GetExecutingAssembly or similar method but all...
0
by: The Coder | last post by:
I get a version tab in the shell only for VS_VERSION_INFO. I was expecting AssemblyInfo.cpp to create the version tab . Can I get AssemblyInfo.cpp to create version tab instead? If can not get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.