You need to give your assembly a strong name.  You can do this by setting 
an AssemblyKeyFile attribute in the assemblyinfo file.  To kenerate a key 
file use the sn.exe utility (look on MSDN for details.)

Something like:

<Assembly: AssemblyVersion("1.0.0.0")> 
<Assembly: AssemblyKeyFile("MyKeyFile.snk")> 

Cheers,

Bill









From "Rosy Malhotra" <[EMAIL PROTECTED]> 
30/04/2007 13:01


To
<[EMAIL PROTECTED]>
cc
<nant-users@lists.sourceforge.net>, 
<[EMAIL PROTECTED]>
Subject
RE: [NAnt-users]  How to put asp.net1.1 assembly in GAC using NANT







Hi,
 
I have used this but it is giving me an error that : 
 
 
Batch.compile:
    [echo] Compilation of Batch Source code
     [echo] -------------------------------------------
[gac-install] Installing 'D:\Project\Dot Net\REIOS\dist\Batch.dll' . . .
[gac-install] Failure adding assembly to the cache: Attempt to install an 
assembly without a strong
name
 
BUILD FAILED - 0 non-fatal error(s), 1 warning(s)
 
D:\Project\Dot Net\REIOS\default.build(116,4):
External Program Failed: C:\Program Files\Microsoft Visual Studio .NET 
2003\SDK\v1.1\bin\gacutil.exe
 (return code was 1)”
 
Thanks and Regards,
Rosy Malhotra

From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] 
Sent: Monday, April 30, 2007 3:22 PM
To: Rosy Malhotra
Cc: nant-users@lists.sourceforge.net; 
[EMAIL PROTECTED]
Subject: Re: [NAnt-users] How to put asp.net1.1 assembly in GAC using NANT
 

You can't, however, you can install an assembly to the gac with the 
<gac-install> task in nant-contrib: 

http://nantcontrib.sourceforge.net/release/latest/help/tasks/gac-install.html 


Cheers, 

Bill 







From "Rosy Malhotra" <[EMAIL PROTECTED]>@lists.sourceforge.net 
Sent by: [EMAIL PROTECTED] 
30/04/2007 10:50 



To
<nant-users@lists.sourceforge.net> 
cc
 
Subject
[NAnt-users]  How to put asp.net1.1 assembly in GAC using NANT
 


 
 





Hi, 
  
Please tell how to put ASP.net 1.1 assembly in GAC using VBC task of NANT. 
It is very urgent. 
  
Thanks and Regards, 
Rosy Malhotra 

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________ 

*********************************************************************************************************************************************************************
"This message and any attachments are solely for the intended recipient 
and may contain confidential or privileged information. If you are not the 
intended recipient,any disclosure,copying, use, or distribution of the 
information included in this message and any attachments is 
prohibited. If you have received this communication in error, please 
notify us by reply e-mail and immediately and permanently delete this 
message and any attachments. Thank you."
*********************************************************************************************************************************************************************

-------------------------------------------------------------------------
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




IMPORTANT 
The information contained in this e-mail and any attachments is intended 
for the addressee only
and may contain legally privileged or confidential information. If you are 
not the intended
recipient you must not use, disclose, copy, distribute, alter, or take any 
action in reliance
on the information and Avon Insurance plc will not accept liability for 
any loss or damage howsoever
arising, directly or indirectly in reliance on it and gives no warranty or 
representation as to its
accuracy or reliability. If you are not the addressee, please notify us 
immediately on 01789 202121*
and delete the material from your computer and destroy any copies.

Avon Insurance plc reserves the right to monitor and record incoming and 
outgoing email messages for
the purposes of investigating or detecting unauthorised use of its system 
and ensuring its effective operation.
Avon Insurance plc will not accept liability for any loss or damage as a 
result of any virus being passed on.

Avon Insurance plc (No. 209606). 
Registered in England. Registered Office: Arden Street, Stratford upon 
Avon, Warwickshire CV37 6WA.
Authorised and regulated by the Financial Services Authority.
A member of the NFU Mutual group of companies and the Association of 
British Insurers.

*For security and training purposes, telephone calls may be recorded and 
monitored. 
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
*********************************************************************************************************************************************************************
"This message and any attachments are solely for the intended recipient 
and may contain confidential or privileged information. If you are not the 
intended recipient,any disclosure,copying, use, or distribution of the 
information included in this message and any attachments is 
prohibited. If you have received this communication in error, please 
notify us by reply e-mail and immediately and permanently delete this 
message and any attachments. Thank you."
*********************************************************************************************************************************************************************


 


IMPORTANT 
The information contained in this e-mail and any attachments is intended for 
the addressee only
and may contain legally privileged or confidential information. If you are not 
the intended
recipient you must not use, disclose, copy, distribute, alter, or take any 
action in reliance
on the information and Avon Insurance plc will not accept liability for any 
loss or damage howsoever
arising, directly or indirectly in reliance on it and gives no warranty or 
representation as to its
accuracy or reliability. If you are not the addressee, please notify us 
immediately on 01789 202121*
and delete the material from your computer and destroy any copies.

Avon Insurance plc reserves the right to monitor and record incoming and 
outgoing email messages for
the purposes of investigating or detecting unauthorised use of its system and 
ensuring its effective operation.
Avon Insurance plc will not accept liability for any loss or damage as a result 
of any virus being passed on.

Avon Insurance plc (No. 209606). 
Registered in England. Registered Office: Arden Street, Stratford upon Avon, 
Warwickshire CV37 6WA.
Authorised and regulated by the Financial Services Authority.
A member of the NFU Mutual group of companies and the Association of British 
Insurers.

*For security and training purposes, telephone calls may be recorded and 
monitored.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
-------------------------------------------------------------------------
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

Reply via email to