You can share the bits that are relevant. The non-relevant bits can be
conditionally compiled out:
http://www.danielmoth.com/Blog/2004/...lframe_17.html
Cheers
Daniel
--
http://www.danielmoth.com/Blog/
"TechGladiator" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a bunch of code in classes that I am trying to convert into a
> class Library. What I would like to do it use the same code in my CF
> Class library as well as my WindowsCF class library.
>
> My problem is that most of my classes have an Import for
> System.Data.SqlClient since I use the SQLConnection method/property.
> It works fine if I compile it as a Windows Class library but when I do
> it for CF it tells me that SQLConnection is not defined.. I dont
> really want to go to every file in my project and change the imports or
> keep two different copies of the code since it will be a pain to
> maintain.
>
> Isnt there a way to share the same code for a Windows Class library as
> well as a CD class library and maybe just have to have a different
> imports file depending on which project you are compiling?
>
> Thanks
> Mike
>