Conflicts between different versions of the same dependent assembly

I updated my CF1 projects to CF2 in my solution, but the CAB I try to deploy won't install: "Installation of MyProg.CAB was unsuccessful." I'm wondering whether the following build warning is relevant, but I can't find any reference to Version 1.0 dlls in my project:

Consider app.config remapping of assembly "System.Windows.Forms, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes" from Version "1.0.5000.0" [] to Version "2.0.0.0" [C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Windows.Forms.dll] to solve conflict and get rid of warning.

Consider app.config remapping of assembly "System, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes" from Version "1.0.5000.0" [] to Version "2.0.0.0" [C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.dll] to solve conflict and get rid of warning.

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning MSB3247: Found conflicts between different versions of the same dependent assembly.

Any suggestions? Thanks.

[1271 byte] By [KitWest] at [2007-12-31]
# 1

No, it won't cause CAB installation failure. CAB does not care about your references. If CAB refuses to install outright it probably means it's incorrect for the platform. Check INF generated by VS to see which platform it’s for.

As to this warning, most likely you have a reference to assembly which has a reference to old assemblies.

IlyaTumanov at 2007-10-9 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 2

I am trying to migrate an application from .NET CF 1.0 to .NET CF 2.0. I have removed all references and have added for .NET version 2.0 . Similarly, I have added sqlCE reference of version 3.0 . I keep getting errors like

The type 'System.Data.SqlServerCe.SqlCeConnection' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.SqlServerCe, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes'.

Cannot implicitly convert type 'System.Data.SqlServerCe.SqlCeConnection []' to 'System.Data.SqlServerCe.SqlCeConnection [c:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0\System.Data.SqlServerCe.dll]'

Please help me to resolve this error?

Thanks,

Sangeetha S

sangeethashanmugam at 2007-10-9 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 3

Dear KitWest,

Please check the property setting of your CAB project.

  1. OSVersionMax
  2. OSVersionMin

These two indicate on which version of platform your CAB can run.

Regards,

Zero Dai - MSFT

ZeroDai-MSFT at 2007-10-9 > top of Msdn Tech,Smart Device Development,Smart Devices General...