Compile DLL against CF 2.0

I am running into a problem right now, currently the DLL's that are for my SDK are being compiled against CF 1.1. I need to compile them against CF 2.0 to see how they perform on our devices.

I changed my
NET_FRAMEWORK_PATH = $(SYSTEM_ROOT)/Microsoft.NET/Framework/v2.0.50727"

and
COMPACT_FRAMEWORK_PATH = "$(WCEROOT500_DIR)/Others/DotNetV2/Managed"

I noticed that there is also a variable for
COMPACT_FRAMEWORK_SDK = C:/Progra~1/Micros~1.Net/CompactFrameworkSDK/v1.0.5000

What is this variable suppose to be now, i don't believe there is a Compact Framework SDK v2 but maybe i am wrong. By the way the error I get is:
The type 'System.Windows.Forms.PictureBox' exists in both
'c:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows
CE\Designer\System.CF.Windows.Forms.dll' and
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll'


Answer this question

Compile DLL against CF 2.0

  • colodrmn

    Are you trying to compile for NETCF V2 with VS 2003 If so, that is not possible. You'd need to upgrade to VS 2005 to do that. Alternatively you can install .Net 2.0 SDK, install NETCF V2 SDK (included with .Net SDK, but not installed automatically) and compile from command line as described here: http://msdn2.microsoft.com/en-us/library/ms172492.aspx



  • Compile DLL against CF 2.0