AssemblyInfo

  • Thread starter Thread starter C
  • Start date Start date
C

C

Hi,

I have a project with a number of assembly's.

(a) How do I version these assembly's?

(b) Is there an option to get the compiler to set the
version in the Assembly.info file?

Thanks,
C.
 
you need to provide an assembly info file for the assemblies and reference
this with your DLL at compile time - within that file you can set the
assembly version to increment authomatically.

[assembly: AssemblyVersion("1.0.*")]

I've provided a small example below for you...


--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------


using System.Reflection;
using System.Runtime.CompilerServices;

[assembly: AssemblyTitle(".NET DLL")]
[assembly: AssemblyDescription("Does something.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("MVPS Ltd.")]
[assembly: AssemblyProduct("MVP HELP")]
[assembly: AssemblyCopyright("(c) 2003, MVPS.")]
[assembly: AssemblyTrademark("Microsoft")]
[assembly: AssemblyCulture("en")]

//
// Version information for an assembly consists of the following four
values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build
Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
 
Back
Top