I played around with this for awhile and found that using regasm with the /tlb switch worked much better in a Custom Build Step.
Craig Lee. -----Original Message----- From: Beaulieu, Paul [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 10:17 AM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] tlbexp problems The following is an error that is received when trying to export the type library for a .NET assembly that we have built. Performing Custom Build Step Microsoft (R) .NET Framework Assembly to Type Library Converter 1.0.3705.0 Copyright (C) Microsoft Corporation 1998-2001. All rights reserved. TlbExp error: Type library exporter can not load required library MSCOREE.TLB. Project : error PRJ0019: A tool returned an error code: "Performing Custom Build Step" On the machine that has the error, OLEView.exe is able to open the mscoree.tlb. Furthermore, on the machines that work, tlbexp does not seem dependent on the settings of PATH, LIB, or INCLUDE, or any other .NET environment variable( When running from a command prompt window). The same error that occurs above on the the offending machine also occurs in a command prompt window. The tlbexp tool does seem to use the registry for some items. Does anyone know what could be causing this error. Thanks for your help. Paul Beaulieu You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
