Sharing class between web application and windows application - what is best method?

  • Thread starter Thread starter James Radke
  • Start date Start date
J

James Radke

Hello,

I have a web application that contains class 'X' (note that this is one
class of many contained in the application). Now, we need to create a pc
based windows application which will use the same class 'X'. So, I was
wondering, what is the best method for sharing the class between the two
different applications (web based and pc windows based) so that I do not
need to copy the code from one application to the other, and keep updating
both whenever changes are required?

Thanks!

Jim
 
* "James Radke said:
I have a web application that contains class 'X' (note that this is one
class of many contained in the application). Now, we need to create a pc
based windows application which will use the same class 'X'. So, I was
wondering, what is the best method for sharing the class between the two
different applications (web based and pc windows based) so that I do not
need to copy the code from one application to the other, and keep updating
both whenever changes are required?

Maybe adding the code to a class library (project template available in
VS.NET Professional or better (for Cor: more complete) and reference
this class library from your other projects.
 
Back
Top