Ben Voigt, thanks for this, he also worked for me.
In addition, if your C ++ code does something specific for the C ++ language (i.e., not fully portable IL), for example, using the stack semantics for an array, you will get the following error:
could not find assembly 'Microsoft.VisualC.dll' etc.
If you recompile the full .NET Framework and then flush the IL code, you will find links to "'. $ ArrayType $$$ BY06 $$ CB_W modopt" or something similar. This tells you where to change the code.
I found that after installing the Silverlight SDK and it was added to "\ Program Files (x86) \ Reference Assemblies". I did not have to go through all the steps of Ben Voigt, just change the project file.
One more note: you can also use:
<TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
if you want to target Windows Phone (first install the SDK).
source share