Wednesday, August 24, 2005

Common AssemblyInfo for Components

Came across this idea of maintaing a common assemblyinfo for different components.

How to do it.
1.Well create a GloabalAssemblyInfo.vb/cs file
2.For a selected project select Add Existing Item
3.Instead of clicking on Open , select "Link file" option
4.This will create a link to GlobalAssemblyInfo.cs.If you closely observe the icon of the linked file you can observe a short cut Icon.

What's the USE of this?
Maintain Common attributes that needs to be across projects/Componets eg: Company Name ,Version Number etc.Though Version number could be bad ,you might want to have different version numbers for different components.

Issues:
Link file does not work for Web project.Any idea(s) Why :(