Bugs item #1587739, was opened at 2006-10-31 09:54 Message generated for change (Comment added) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1587739&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Tasks Group: None Status: Open >Resolution: Accepted Priority: 5 Private: No Submitted By: Volker Schoenharting (schoenha) Assigned to: Gert Driesen (drieseng) Summary: signing satellite resource assemblies Initial Comment: When the attribute "keyfile" is used for the csc task it won't be applied to the call to the "al" command line tool for building satellite resource assemblies. The attached file contains a patch for "CompilerBase.cs" in its current version. ---------------------------------------------------------------------- >Comment By: Gert Driesen (drieseng) Date: 2007-01-07 18:14 Message: Logged In: YES user_id=707851 Originator: NO I finally had time to look into this a little further, and this is what I noticed: If the keyfile is specified using an AssemblyKeyFileAttribute, then the assembly linker (al.exe) will use the filename that was specified there for signing the satellite assembly. So, you're correct in stating that we need to pass the /keyfile option to al.exe to sign satellite assemblies (that were signed using /keyfile option). I'll fix this asap. ---------------------------------------------------------------------- Comment By: Volker Schoenharting (schoenha) Date: 2006-11-01 13:10 Message: Logged In: YES user_id=211423 I have attached a small project that produces the error. The following shows the output of nant (see also the "nant.output.txt" file): E:\Projects\SignTest>nant NAnt 0.85 (Build 0.85.2478.0; release; 14.10.2006) Copyright (C) 2001-2006 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///E:/Projects/SignTest/SignTest.build Target framework: Microsoft .NET Framework 2.0 Target(s) specified: build prepare: [mkdir] Creating directory 'E:\Projects\SignTest\build'. build: [csc] Compiling 3 files to 'E:\Projects\SignTest\build\SignTest.dll'. [resgen] Read in 1 resources from "E:\Projects\SignTest\Resources\Resource.resx" [resgen] Writing resource file... Done. [resgen] Read in 1 resources from "E:\Projects\SignTest\Resources\Resources.de.resx" [resgen] Writing resource file... Done. [al] Compiling 1 files to 'E:\Projects\SignTest\build\de\SignTest.resources.dll'. BUILD SUCCEEDED Total time: 0.9 seconds. E:\Projects\SignTest>sn -T build\SignTest.dll Microsoft (R) .NET Framework Strong Name Utility Version 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. Public key token is 8bfff3725ef78b4d E:\Projects\SignTest>sn -T build\de\SignTest.resources.dll Microsoft (R) .NET Framework Strong Name Utility Version 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. build\de\SignTest.resources.dll does not represent a strongly named assembly E:\Projects\SignTest> ---------------------------------------------------------------------- Comment By: Gert Driesen (drieseng) Date: 2006-10-31 17:05 Message: Logged In: YES user_id=707851 I cannot reproduce this here. In the test case I used, the satellite assembly gets signed just fine. Please reopen the bug report if you have a repro you can share. ---------------------------------------------------------------------- Comment By: Volker Schoenharting (schoenha) Date: 2006-10-31 11:40 Message: Logged In: YES user_id=211423 Using templates one can only supply information such as version numbers etc. On general principles it must not be possible to extract the information necessary to sign an assembly (i.e. the private key) from another assembly. ---------------------------------------------------------------------- Comment By: Gert Driesen (drieseng) Date: 2006-10-31 10:01 Message: Logged In: YES user_id=707851 Correct me if I'm wrong, but we pass the built assembly as template to al. So the satellite assembly should automatically obtain the complete identity from it. Do you have a small repro for this ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1587739&group_id=31650 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers