Guys, I'm trying to create a Strong-Named assembly using the keyfile attribute to the <csc> task. Using nant 0.85 on .Net-2.0/win32 this works flawlessly, but running the same build file on mono-1.2.5.1/linux fails. NAnt seems to ignore the keyfile attribute and compiles an unsigned assembly instead.
Output of sn -Tp on .Net-2.0/Vista: C:\Users\erik\workspace\nlayerstream-library>sn -Tp build\nlayerstream-library.Debug.dll Microsoft (R) .NET Framework Strong Name Utility Version 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. Public key is 00240000048000009400000006020000002400005253413100040000010001004f69a0c37b620b b1ae41e27cb69e7c3fff089bc62010796c97dd5f776f7d4124f1273c49269cc1ee511167f72f7b 6242eabefcf3a4b83f3cdbc998c92cd47b7cf110f7922bc09e944b83f6af9cc9f29bf597cf128a 08f36af12c6baf34c7471c1e6fbcd449b0f20f65e65bccd413dc897736404ed53d8e47829f3646 887914a7 Public key token is 68d98078e9190476 Output on mono-1.2.5.1/Linux: [EMAIL PROTECTED] nlayerstream-library]$ sn -Tp build/nlayerstream-library.Debug.dll Mono StrongName - version 1.2.5.1 StrongName utility for signing assemblies Copyright 2002, 2003 Motus Technologies. Copyright 2004-2006 Novell. BSD licensed. build/nlayerstream-library.Debug.dll does not represent a strongly named assembly. [EMAIL PROTECTED] nlayerstream-library]$ Below is the target that compiles and signs the assemblies: <target name="compile.test" depends="init"> <csc target="library" output="build/${project::get-name()}.Debug.dll" keyfile="src/main/main.snk" debug="true"> <sources> <include name="src/main/**/*.cs" /> </sources> </csc> <csc target="library" output="build/${project::get-name()}.Test.dll" keyfile="src/test/test.snk" debug="true"> <sources> <include name="src/test/**/*.cs" /> </sources> <references> <include name="build/${project::get-name()}.Debug.dll" /> <include name="tools/nunit/nunit.framework.dll" /> <include name="tools/rhino/Rhino.Mocks.dll" /> </references> </csc> </target> What am I doing wrong here? kind regards, Erik van Zijst ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users