Home All Groups Group Topic Archive Search About

Using VB 2005 assemblies with VB 2003

Author
28 Mar 2006 2:55 PM
Pugwash
This should be simple.

I have a VB 2003 project that needs one VB 2005 component (I cannot just
port the project as a key component is currently 2003 only).

I created a class in VB 2005, tested it and compiled to a dll. VB 2003 will
not let me reference this dll and says it is not a valid assembly. Is there
something I'm doing wrong or is this just not possible.

Thanks

Peter Smith

Author
28 Mar 2006 3:18 PM
Cor Ligthert [MVP]
Pugwash,

Just not possible.

Cor

Show quoteHide quote
"Pugwash" <pugwash@community.nospam> schreef in bericht
news:OXuUTenUGHA.1564@TK2MSFTNGP11.phx.gbl...
> This should be simple.
>
> I have a VB 2003 project that needs one VB 2005 component (I cannot just
> port the project as a key component is currently 2003 only).
>
> I created a class in VB 2005, tested it and compiled to a dll. VB 2003
> will not let me reference this dll and says it is not a valid assembly. Is
> there something I'm doing wrong or is this just not possible.
>
> Thanks
>
> Peter Smith
>
Author
29 Mar 2006 10:42 AM
Carlos J. Quintero [VB MVP]
It is not possible because the .NET assembly 2.0 could use something
specific to .NET 2.0, such as new class library or some new feature of the
language such as Generics. So, you can´t use 2.0 assemblies from 1.x code.
But the opposite can work, that is, port to .NET 2.0 and use an assembly
1.x. See:

Compatibility Considerations and Version Changes
http://www.gotdotnet.com/team/changeinfo/


--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com



Show quoteHide quote
"Pugwash" <pugwash@community.nospam> escribió en el mensaje
news:OXuUTenUGHA.1564@TK2MSFTNGP11.phx.gbl...
> This should be simple.
>
> I have a VB 2003 project that needs one VB 2005 component (I cannot just
> port the project as a key component is currently 2003 only).
>
> I created a class in VB 2005, tested it and compiled to a dll. VB 2003
> will not let me reference this dll and says it is not a valid assembly. Is
> there something I'm doing wrong or is this just not possible.
>
> Thanks
>
> Peter Smith
>