Dynamically compile C# code on wp7
I need to dynamically compi开发者_运维技巧le C# code in my WP7 app.
Normally i would use Microsoft.CSharp and System.CodeDom to compile the code during runtime, but they are unavailable on wp7 :(
Any ideas ?
For security reasons you can't compile code on the phone. It would completely undermine the marketplace validation process & purpose if you could.
There are a few options though.
Use a dynamic language, such as IronRuby. Just like in Iron7
Compile the code on a remote server in response to what's defined in the app. Just like in Pocket C#
Or create your own DSL. Like in Touch Studio
精彩评论