473,544 Members | 1,241 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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: AssemblyDescrip tion("")]
[assembly: AssemblyConfigu ration("")]
[assembly: AssemblyCompany ("")]
[assembly: AssemblyProduct ("")]
[assembly: AssemblyCopyrig ht("")]
[assembly: AssemblyTradema rk("")]
[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 10922
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
AssemblyDescrip tion = as it says description/details of asm
AssemblyConfigu ration = 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
AssemblyCopyrig ht = legal stuff
AssemblyTradema rk = again legal stuff
AssemblyCulture = e.g. en for english th for thai etc

Tx.

"Gustaf" <gu*****@algone t.se> wrote in message
news:uy******** ********@TK2MSF TNGP11.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: AssemblyDescrip tion("")]
[assembly: AssemblyConfigu ration("")]
[assembly: AssemblyCompany ("")]
[assembly: AssemblyProduct ("")]
[assembly: AssemblyCopyrig ht("")]
[assembly: AssemblyTradema rk("")]
[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
AssemblyTitleAt tribute. 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.Com panyName + "\\" +
Application.Pro ductName + "\\" + Application.Pro ductVersion;

this._RegConf = new AppRegConfigura tion(_stAppKeyP ath);

AppRegConfigura tion 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
1937
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? Thanks, Robert Scheer
2
582
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 versioning. I cannot find this file anywhere in my .NET project- what gives?
5
36407
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 System.Reflection; using System.Runtime.CompilerServices;
0
338
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: label1->Text = Application::CompanyName;
5
2372
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 files that pre-load when you create a Console Application, AssemblyInfo.cpp and Resource.h files. According to the long search I did, these files...
4
11821
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 the code to C#: Dim objCopyright As AssemblyCopyrightAttribute = CType (AssemblyCopyrightAttribute.GetCustomAttribute...
1
4819
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 in VS2005, the AssemblyInfo.vb file is hidden away. I want to be able to include this file in my normal Solution Explorer file list. I can gain...
2
2111
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 are failed. My main purpose is the version number stored in AssemblyInfo.vb. Thanks for your attention and kindly advice! Regards,
0
1955
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 AssemblyInfo.cpp to create version tab, then do I need to fill in both the AssemblyInfo.cpp and VS_VERSION_INFO resource? Does this mean that...
0
7365
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7607
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7772
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5297
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4918
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3409
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
988
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
661
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.