I also use the two assembly info file solution and it works great. I
keep all of the project specific info in "AssemblyInfo.cs" and the
shared info in "CommonAssemblyInfo.cs".
For example, the common file looks like:
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the
following
// set of attributes. Change these attribute values to modify the
information
// associated with an assembly.
[assembly: AssemblyCompany("My Company")]
[assembly: AssemblyProduct("Main ")]
[assembly: AssemblyCopyright("Copyright (c) 2007 My Company")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Assembly Version information:
[assembly: AssemblyVersion("0.9.7.3")]
A project specific file contains:
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the
following
// set of attributes. Change these attribute values to modify the
information
// associated with an assembly.
[assembly: AssemblyTitle("Eden.Data")]
[assembly: AssemblyDescription("EDEN Database Access Routines")]
[assembly: AssemblyConfiguration("")]
// Setting ComVisible to false makes the types in this assembly not
visible
// to COM components. If you need to access a type in this assembly
from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is
exposed to COM
[assembly: Guid("723d072f-6d03-46fa-b81d-a0bfcae338c9")]
In Visual Studio, to link the common file to the project, use the "Add
Existing Item" menu selection. Browse to the common file and select it.
The Add button has a arrow on it allowing you to choose to either "Add"
or "Add as Link". Click the arrow and select the latter.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of DinkaYa
Sent: Thursday, May 17, 2007 8:57 AM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Set the version in AssemblyInfo
But then all the projects will have the same Guid...
Also, how do you link the projects to the AssemblyInfoCommon?
Bob Archer wrote:
>
> What we do is have two AssemblyInfo files. One called
AssemblyInfoCommon
> that we link to all projects in a solution. This has static info like
> company name, copyright, etc. Then we have one that gets genned by the
> build with just AssemblyVersion and AssemblyFileVersion in it. You
could
> do a similar thing. Have a static one with your Assembly COM id...
this
> way you don't need to put it into your build files.
>
> BOb
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of DinkaYa
> Sent: Thursday, May 17, 2007 9:37 AM
> To: nant-users@lists.sourceforge.net
> Subject: [NAnt-users] Set the version in AssemblyInfo
>
>
> I would to set the AssemblyVersion in AssemblyInfo, the problem is
that
> using
> asminfo I'm having trouble generating the Guid for the assembly in
case
> that
> it will be exposed to COM, does anybody have any ideas how it is
> possible to
> generate the Guid or a different way to set the AssemblyVersion?
>
>
> --
> View this message in context:
>
http://www.nabble.com/Set-the-version-in-AssemblyInfo-tf3771958.html#a10
> 664271
> Sent from the NAnt - Users mailing list archive at Nabble.com.
>
>
>
------------------------------------------------------------------------
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>
------------------------------------------------------------------------
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>
--
View this message in context:
http://www.nabble.com/Set-the-version-in-AssemblyInfo-tf3771958.html#a10
664602
Sent from the NAnt - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users