Click here to Skip to main content
15,030,744 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey all,

I want to share an assembly between my WP7 project and my .NET project (a host program that runs on you PC). I managed to do that, but in my shared assembly I have a Parse() and a ToXml() function for my objects. On the WP7 project this runs fine, but however, on the PC this code doesn't want to run... Any suggestions? I don't want to implement my functions twice, that would be a waste of time and a demand for trouble.


1 solution

I suggest running it under the debugger on the PC... Telling us that "it won't run" doesn't tell us squat.

EDIT (after comment) ================

Are you recompiling the DLL for each platform?
_Madmatt 27-Jun-11 13:38pm
"Common Language Runtime heeft een ongeldig programma gedetecteerd." This means "Common Language Runtime detected an unvalid program" or something like this. What can I do? :s
_Madmatt 29-Jun-11 11:51am
Yes, I have. But as that didn't work neither, I'm now converting my objects to Byte arrays. This works like a charm (almost, still some bugs to fix).
Thanks for help anyway!


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900