[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

tlbimp.exe issue with VS .NET 1.1 and VS .NET 1.0 on the same box

Dylan Phillips

12/4/2002 3:09:00 AM

I have both VS .NET 1.0 and 1.1 installed on my development machine. When
running tlbimp.exe against a COM ".dll", the mscorlib.dll referenced in the
assembly is 1.0.3300.0. The VS .NET 1.1 managed components in the IDE
require mscorlib.dll 1.0.5000.0.

The Visual Studio explains that this is an error as it cannot contain both
versions mscorlib.dll.

Does anyone know how to point tlbimp.exe to mscorlib 1.0.5000.0?

Suggestions would be appreciated.

Dylan Phillips


2 Answers

Dylan Phillips

12/4/2002 5:11:00 AM

0

Issue was solved by using "ildasm.exe" to disassemble the assembly I created
with tlbimp.exe; it reference 1.0.3300.0. I then used ildasm.exe to
disassemble an assembly I created through Visual Studio, this one referenced
mscorlib 1.0.5000.0. Then I copied the external assembly reference of
mscorlib 1.0.5000.0 and overwrote the reference 1.0.3300.0 in the other IL.

I then used "ilasm.exe" to recompile the original IL which now references
mscorlib 1.0.5000.0.

I used the following article as reference material:

MSDN Library:

.NET Development/Visual Studio .NET/Articles and Columns/General
Articles/Troubleshooting .NET Interoperability

Hope this helps anyone with a similar problem.

Dylan


"Dylan Phillips" <mykoan@bellsouth.net> wrote in message
news:Ow2jFnzmCHA.1448@TK2MSFTNGP11...
> I have both VS .NET 1.0 and 1.1 installed on my development machine. When
> running tlbimp.exe against a COM ".dll", the mscorlib.dll referenced in
the
> assembly is 1.0.3300.0. The VS .NET 1.1 managed components in the IDE
> require mscorlib.dll 1.0.5000.0.
>
> The Visual Studio explains that this is an error as it cannot contain both
> versions mscorlib.dll.
>
> Does anyone know how to point tlbimp.exe to mscorlib 1.0.5000.0?
>
> Suggestions would be appreciated.
>
> Dylan Phillips
>
>


Damien Foggon

12/5/2002 8:35:00 PM

0

Don't know if this is relevant, but you can get VS.NET to use 1.1 by
default. Have a look at the "Using .NET 1.1 in VS.NET" thread in this
newsgroup.

Have you also tried using the tlbimp.exe from the 1.1 framework and not the
one from the 1.0 framework?

"Dylan Phillips" <mykoan@bellsouth.net> wrote in message
news:Ow2jFnzmCHA.1448@TK2MSFTNGP11...
> I have both VS .NET 1.0 and 1.1 installed on my development machine. When
> running tlbimp.exe against a COM ".dll", the mscorlib.dll referenced in
the
> assembly is 1.0.3300.0. The VS .NET 1.1 managed components in the IDE
> require mscorlib.dll 1.0.5000.0.
>
> The Visual Studio explains that this is an error as it cannot contain both
> versions mscorlib.dll.
>
> Does anyone know how to point tlbimp.exe to mscorlib 1.0.5000.0?
>
> Suggestions would be appreciated.
>
> Dylan Phillips
>
>