I am developing a windows phone app and an android app. Both the apps are under one visual studio 2010 solution.
I wanted to include a third project under the same solution which contains common functionality that both windows and android app uses. So, for this when I use plain ‘Class Library’ and when I try to reference that in windows phone app project, it says “Unable to add the selected project reference. The project reference must be another Silverlight for Windows Phone project that is same or lower version”.
Which type of project do you suggest, so that I can use it windows phone and android projects?
You will have to use two different csproj files – because the build targets and other pieces will be different for the two platforms. Use this recursive include in each csproj to add the sources from a common location.
You can also try to use the Portable class library extension but I’m not sure if it will help.