Separating business logic

J

John

Hi all,

I'm attempting to separate my business logic from the presentation (i.e.
class library). I include a reference to the System.Data.SQLServerCE
namespace because this particular library is going to use the database on
the device. I then add it to my main app in references.

The problem I have is when I attempt to build my main app, I receive an
error

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

How do I work around this?


Regards
John.
 
P

Peter Foot [MVP]

Your library project must be created using the Smart Device Application
project type and then selecting the Class Library sub type. Creating a Class
Library project from the New Projects dialog will create a desktop dll
project which cannot be used in device projects.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
J

John

Just what I wanted to know - thanks.

Peter Foot said:
Your library project must be created using the Smart Device Application
project type and then selecting the Class Library sub type. Creating a Class
Library project from the New Projects dialog will create a desktop dll
project which cannot be used in device projects.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 

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