Separating business logic

From: John (a_at_b.com)
Date: 09/06/04


Date: Mon, 6 Sep 2004 12:04:50 +0200

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.



Relevant Pages

  • Re: Class vs. DLL
    ... This will then be compiled into a separate dll. ... the classes from the application you need to add a reference to the project. ... import the namespace or specify the full class name (i.e. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Class vs. DLL
    ... If I create a DLL do I include these functions by adding it as a reference in my projects? ... If a class is in a different namespace (which it usually would be if it's in a separate project), you either can use a using directive to import the namespace or specify the full class name everytime you use the class. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: User Class
    ... The User object is kept in your ASP.NET application. ... > this reference in other classes that I create. ... They also have a namespace that is different than the ... > rest of my app. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • User Class
    ... I'm new here so please forgive me if this is a stupid question. ... this reference in other classes that I create. ... For example my app may be a namespace of "mycompany.myapp" ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Simple design question
    ... confusion, you should consider using the same namespace in both projects, ... Place the .dll file in the same bin folder as the web application .dll ... window and add the entire project as a reference. ... > I am developing an asp.net app which will be using functions which will ...
    (microsoft.public.dotnet.framework.aspnet)