Adding a reference to a device project may produce unexpected results

D

Doug Crawford

I have a smart device class library and I have Smart Device application
project that uses the library. I also want to have a regular .NET
desktop application that uses the same library for testing and
debugging. However, when the Desktop application references the Smart
Device class library I get the following warning: "Adding a reference to
a device project may produce unexpected results". Is there a better
approach for reusing the same C# files in a mobile and desktop
application. Should I forget the class library and just add the common
C# classes as linked files to both my mobile and desktop projects?
 
G

Guest

Doug,
I've faced the same issue before. THe way I got around it was to create two
seperate dll projects. One for Smart Device and the other for desktop.
Create all of the files in the smart device project and then add them as
references to the desktop project. You can then reference the appropriate
project and all should be well.

Rick D.
Contractor
 

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