Our team is developing a framework. In a different solution, we have a mobile project (along with other "normal" .NET projects). That mobile project would benefit from using some of the code in the framework. However, the framework is the full .NET version, not the compact framework. How should the mobile project use that framework code? Right now, our team has added many files in the framework to the mobile project via linked files. We can do this, but I'm wondering if there is a better way. With this approach, we have to take some extra steps on the build machine to make sure those linked files are available when we build the solution with the mobile app in it.
Another option is to maintain two versions of the framework classes; one as the full .net version, and another as the compact framework version. But maintaining duplicate code is never good.