Adding a reference to a device project may produce unexpected results

  • Thread starter Thread starter Doug Crawford
  • Start date Start date
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?
 
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
 
Back
Top