Bugs item #1531844, was opened at 2006-07-31 18:20 Message generated for change (Comment added) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1531844&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: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: chilang (chilang) Assigned to: Nobody/Anonymous (nobody) Summary: regasm failed on unregistering for COM interop projects Initial Comment: I have a project with RegisterForComInterop="true" that fails when building with NAnt (nightly, 2006-07-23) using Solution task. The unregistering task ie. regasm fails with return code 100. It looks like that when unregistering with regasm the /tlb flag is uneccessary added causing the failure. Changing RegAsmTask.cs to handle this case seems to solve the issue for me : if (TypeLib != null && !Unregister) { _arguments.AppendFormat(CultureInfo.InvariantCulture, " /tlb:\"{0}\"", TypeLib.FullName); } Attached is the fixed RegAsmTask.cs (based on nightly, 2006-07-23) ---------------------------------------------------------------------- >Comment By: Gert Driesen (drieseng) Date: 2006-08-01 21:27 Message: Logged In: YES user_id=707851 It's working fine in my local regression tests: [regasm] Starting 'C:\DOCUME~1\drieseng\LOCALS~1 \Temp\tmpCB.tmp\regasm.exe ( /unregister /tlb:"D:\nant- test-projects\ok\NAnt\solution\2003 \cs\RegisterForComInterop\TlbIssue\bin\Debug\TlbIssue.tlb" /verbose /nologo "C:\DOCUME~1\drieseng\LOCALS~1 \Temp\tmpCB.tmp\TlbIssue.dll")' in 'C:\DOCUME~1 \drieseng\LOCALS~1\Temp\tmpCB.tmp' [regasm] Types unregistered successfully [regasm] Type library 'D:\...\RegisterForComInterop\TlbIssue\bin\Debug\Tl bIssue.tlb' unregistered successfully >From the regasm docs in .NET Framework SDK: "If you use the /tlb option to registered a type library, you can use /tlb option with the /unregister option to unregistered the type library. Using the two options together will unregister the type library and interface entries, which can clean the registry considerably." So, we should not have to touch the code. Not sure why it's failing for you though. Can you share a small repro ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1531844&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