Darrell Norton's Blog [MVP]

Sponsors

The Lounge

News

  • Darrell Norton pic

    MVP logo

    View Darrell Norton's profile on LinkedIn

    Currently Reading:

    weewar.com

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Use a single AssemblyInfo file for multiple projects

If you want to have a single AssemblyInfo file for a multi-project solution, the easiest way to do it is:

  1. Place the AssemblyVersion attribute in a single source file, for example AssemblyVersionInfo.cs or AssemblyVersionInfo.vb.
  2. Share the file across any projects that need to share the same version number within VSS (or CVS, Vault, Subversion, etc.).

From chap 5 of the Team Development with Visual Studio .NET and Visual SourceSafe guide.


Posted 03-30-2004 10:53 AM by Darrell Norton

[Advertisement]

Comments

Louise wrote re: Use a single AssemblyInfo file for multiple projects
on 02-02-2005 3:51 AM
If you create a single file with the version info, then to share it across multiple projects, I have read that you need to use a "Link file" option. This option is not available in an ASP.Net web application.

Is there some way to have a single AssemblyInfo file (or a file with some of the assembly info in it) and share this across multiple projects in the 1 solution?
Darrell wrote re: Use a single AssemblyInfo file for multiple projects
on 02-02-2005 6:17 AM
I'm not sure if a web app has the "link file" option or not. What I was suggesting was using your source code control system (such as SourceSafe) to share the file among projects. When you get latest version from SourceSafe, a copy of the AssemblyInfo.** file will be downloaded to every project if you have set it up correctly.