Best practice for sharing code between ASP and Winforms apps?

  • Thread starter Thread starter JDC
  • Start date Start date
J

JDC

Hi all,

I've got a situation where I need to create a Windows Forms application
as an admin tool which is driven by the same data as an ASP.NET
application.

Luckily my 3-tier-ish design means my data and business objects will
cope quite well with this, but I'm wondering what the best way to do
this is?

I'm not sure I want both apps in the same folder, but I want some of my
classes shared between the apps.

Can anyone who's done this comment? Any articles I should read?

Cheers, JC
 
Just put your business assemblies into the app folders of both applications.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

A lifetime is made up of
Lots of short moments.
 
OK, let me check if I've got this right. I add a new class library
project to my web application solution, and move my shared classes into
that .dll project. Then I reference that .dll in my Windows Forms app?
 
Well, it's better if you include the class library project in the solution.
You can include the same projects in many different solutions.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

A lifetime is made up of
Lots of short moments.
 
That makes sense. Thanks for the advice.

Kevin said:
Well, it's better if you include the class library project in the solution.
You can include the same projects in many different solutions.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

A lifetime is made up of
Lots of short moments.
 
Tasty, perhaps, but a little complex to prepare. I think I'll stick
with the basic xcopy flavour for the time being :-)

Cheers, JDC
 
Back
Top