Separating business logic

  • Thread starter Thread starter John
  • Start date Start date
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.
 
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
 
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
 
Back
Top