"... Are you sure this works from Visual Studio ? From what I've read you should ..."
It definitely works, but I don't trust VS too much to be reliable. It has a nasty habit of trying to be "helpful" and finding files in different locations because it can't find them where they should be. This is one of the main drivers that moved me to NAnt as we had no end of problems trying to get solutions to build on developer machines because of hint paths etc. The alternative is to use the <args> element in the <vbc> task to explicitly pass the location of the key file when I compile the application. Cheers, Bill -----Original Message----- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: 29 March 2004 21:50 To: Bill Martin; [EMAIL PROTECTED] Subject: Re: AW: [Nant-users] Solution Task and Strong Names > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, March 29, 2004 9:31 AM > Subject: RE: AW: [Nant-users] Solution Task and Strong Names > > I'm slightly confused (it doesn't take much!). Which tasks have been > modified? The <solution> task has been modified. We now set the current working directory to %Project Directory%\obj\<configuration> (see below). > I raised the same problem last week (see "Problem with vbc task" > post) and Gert kindly provided the response that VS tries the path to the > Key file first from the current directory, and if it can't find it there, > then from the output directory. As a result of this, I then changed my > AssemblyInfo.vb file to be: > > <Assembly: AssemblyKeyFile("Component.snk")> > > and this seems to work fine both within Visual Studio and from my NAnt > script (I'm using 0.84). Are you sure this works from Visual Studio ? From what I've read you should specify the assemblykeyfile as "a path relative to the project output directory which is / %Project Directory%\obj\<configuration>. For example, if your KeyFile is located in the project directory, you would specify the AssemblyKeyFile attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]". > Will this now break as a result of changes made > when I upgrade to 0.85? You might have to change your attribute to <Assembly: AssemblyKeyFile("..\\..\\Component.snk")> Gert ______________________________________________________________ CONFIDENTIALITY NOTICE This communication and the information it contains is intended for the person or organisation to whom it is addressed. Its contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you are not the intended recipient, please contact us immediately. The contents of any attachments in this e-mail may contain software viruses, which could damage your own computer system. While Marlborough Stirling has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage, which you sustain as a result of software viruses. You should carry out your own virus checking procedure before opening any attachment. Marlborough Stirling plc, Registered in England and Wales Registered No. 3008820, Allen Jones House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH Tel: 01242 547000 Fax: 01242 547100 http://www.marlborough-stirling.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users