calling a 2.0 CF assembly from a 1.1 assembly ?

  • Thread starter Thread starter Steve B.
  • Start date Start date
S

Steve B.

Hi,

I'd like to create a lib with VS 2005 (CF2.0) and consume this lib from a
1.1 app created with VS 2003.

Is it possible ?

Thanks,
Steve
 
You can't. The CF 1.0 EE won't have the necessary internals for calling a
2.0 assembly.

-Chris
 
Correct.

VS 2005 Beta 2 will let you create CFv1 DLLs which can be called from both
v1 and v2 apps.
 
If the .NET CF v2 runtime is installed on your device, your scenario can be
made to work. However, by default an application built with the v1 tools
will use the v1 runtime if it is installed and that will not allow you to
use any libraries created with v2 tools. So if both the v1 and v2 runtimes
are installed, you will need to use a .config file to tell .NET CF to use
the v2 runtime even though it is a v1 app. See
http://blogs.msdn.com/stevenpr/archive/2004/12/30/344540.aspx for more
information about that.

If only .NET CF v2 is installed on the device, everything should just
magically work.

Brian

--------------------
From: "Steve B." <[email protected]_com_and_msn>
Subject: Re: calling a 2.0 CF assembly from a 1.1 assembly ?
Date: Wed, 20 Jul 2005 10:50:52 +0200

Even if both CF versions are installed ?

Thanks,
Steve

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top