On 4/29/05, Shelly Midha <[EMAIL PROTECTED]> wrote: > I'm getting the following error while I try to execute the following target > from the build script: > > Target: > ------------------------------------------------------------------------------------------------- > <?xml version="1.0"?> > <project name="TestKey" default="TestKey"> > <property name="key.pair" value="e:\temp\math\new" /> > > <target name="TestKey" description="The following command creates a new, > random key pair"> > <!-- Execute sn -q -k ${key.pair}.snk --> > <exec program="E:\Program Files\Microsoft Visual Studio .NET > 2003\SDK\v1.1\Bin\sn"> > <arg value="-k ${key.pair}.snk" /> > </exec> > </target> > </project> > -------------------------------------------------------------------------------------------------
The following script worked for me (I had to tweak paths a bit to make it work on my machine): <?xml version="1.0"?> <project name="TestKey" default="TestKey"> <property name="key.pair" value="E:\[...]\new" /> <target name="TestKey" description="..."> <!-- Execute sn -q -k ${key.pair}.snk --> <exec program="C:\[...]\SDK\v1.1\Bin\sn"> <arg value="-q" /> <arg value="-k" /> <arg value="${key.pair}.snk" /> </exec> </target> </project> Values of <arg> tag's value parameter must not contain spaces, AFAIK. I don't know if it is stated in documentation but my exprience shows that this is the answer. BTW: this question should be rather posted to nant-users list, IMO. Best regards! Marcin ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers