Hi,


I want to generate strong name using VBC task. If I am using Solution
approach then it is generating the strong name automatically. But when
we are using VBC task then it is giving errors. O am using keyfile
approach and delay sign approach. Both are not working. My project
already contains .snk file and in assemblyinfo.vb file there is a entry
for .snk file. But I am getting the following errors. Please tell how I
can sign my assembly with already present .snk file



Constants.compile:



     [echo] Compilation of Constants Source_Code

      [vbc] Compiling 20 files to
'D:\Birlasoft\DotNet\REIOS\dist\Constants.dll'.

      [vbc] The compiler for Microsoft .NET Framework 1.1 does not
support the /keycontainer option.

      [vbc] The compiler for Microsoft .NET Framework 1.1 does not
support the /keyfile option.

      [vbc] vbc : error BC30140: Error creating assembly manifest: Error
reading key file '..\..\Constants.snk' -- The system cannot find the
file specified. 



<target name="Constants.compile" depends="ActiveReportsDlls.copy"
description="Compilation of Constants Source_Code" >

<vbc target="library" output="${dist.dir}\Constants.dll"
keycontainer="${root.dir}\Source_Code\Constants\AssemblyInfo.vb"
keyfile="${root.dir}\Source_Code\Constants\Constants.snk">

                   <imports>

                        <import namespace = "Microsoft.VisualBasic" />

                        <import namespace = "System"/>

                        <import namespace = "System.Collections"/>

                        <import namespace = "System.Data"/>

                        <import namespace = "System.Diagnostics"/>

                  </imports>

                  <sources basedir="${root.dir}\Source_Code\Constants">

                        <include name="*.vb" />

                  </sources>

                  <references>

                        <include name = "System.dll"/>

                        <include name = "System.Data.dll" />

                        <include name = "System.Web.dll" />

                        <include name = "System.Web.Services.dll" />

                        <include name = "System.XML.dll" />

                        <include name = "System.EnterpriseServices.dll"
/>   

                  </references>

            </vbc>



            <delay-sign
keyfile="${root.dir}\Source_Code\Constants\AssemblyInfo.vb"
verbose="false">

                  <targets>

                    <include name="${dist.dir}\Constants.dll" />

                 </targets>

            </delay-sign>

            <echo message="${task.seperator}" />

      </target>



Thanks and Regards,

Rosy Malhotra



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

Reply via email to