OpenNETCF and ICSharpCode.SharpZipLib

P

Pascal Deliot

Hi,

I'v recently tried to build an OpenNETCF project with the
ICSharpCode.SharpZipLib assembly.

I've a corelib assembly conflic between two referenced version:

Error: The dependency 'mscorlib, Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' in project 'OpenNETCFApplicationZip' cannot
be copied to the run directory because it would conflict with dependency
'mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' in project 'OpenNETCFApplicationZip' cannot
be copied to the run directory because it would conflict with dependency
'mscorlib, Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.

The same code and reference but with a simple Compact Framework project
build and run without problem.
Does anyone have a workaround or a solution to that problem ?

Thanks

Pascal Deliot
 
P

Peter Foot [MVP]

There is a problem with the Smart Device project template used with VB.NET
when adding references to OpenNETCF assemblies. If you remove the references
to OpenNETCF.* then add a reference to mscorlib, then add back the
OpenNETCF.* references it should build correctly.

Alternatively create your project as an OpenNETCF Application and move
across your existing code-files. We explicitly add a reference to the
correct mscorlib.dll in our template so you should not see this problem.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top