I have a simple Silverlight application that I want to run on Windows Phone 7 almost exactly the same as it is. I created a new Windows Phone 7 project, and when I refer to the Silverlight application, I get a warning saying: "Adding a link to the Silverlight project may not work properly. Continue?".
If I continue and try to start in any case, the WP7 project will never start, or sometimes I get the message "AG_E_PARSER_BAD_TYPE error" and it points to a line in xaml. I used the control from the Silverlight project.
The code between the two projects is approximately 99%. Is there any other way to reuse the code than I'm trying? Or how can I make this work?
source
share