Best practice for sharing code between ASP and Winforms apps?

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
 
K

Kevin Spencer

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.
 
J

JDC

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?
 
K

Kevin Spencer

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.
 
J

JDC

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.
 
J

JDC

Tasty, perhaps, but a little complex to prepare. I think I'll stick
with the basic xcopy flavour for the time being :)

Cheers, JDC
 

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

Top