Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Help with Assembly Information File in C#

What is the Assembly Information File for in C# and how do I use it?

like image 848
Arlen Beiler Avatar asked Feb 27 '23 16:02

Arlen Beiler


2 Answers

The AssemblyInfo file is used to document your dlls or exes to describe where the code comes from, its version etc. If your code is publicly available then its certainly good practice to make sure you add useful information too it. http://www.codinghorror.com/blog/archives/000141.html

If you build your project with NAnt there is also a useful target that allows you to build the assembly info dynamically. http://nant.sourceforge.net/release/latest/help/tasks/asminfo.html

like image 158
Jon Palmer Avatar answered Mar 02 '23 08:03

Jon Palmer


Right-click on any program icon, and select 'Properties'. Navigate to the 'Version' tab. That information you see is what is contained in the AssemblyInfo.cs file, among other things.

like image 34
Charlie Salts Avatar answered Mar 02 '23 07:03

Charlie Salts