Amr H. Abd Elmajeed
Amr H. Abd Elmajeed

Reputation: 1521

Dynamically compile C# code on wp7

I need to dynamically compile 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 ?

Upvotes: 0

Views: 612

Answers (1)

Matt Lacey
Matt Lacey

Reputation: 65564

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.

  1. Use a dynamic language, such as IronRuby. Just like in Iron7

  2. Compile the code on a remote server in response to what's defined in the app. Just like in Pocket C#

  3. Or create your own DSL. Like in Touch Studio

Upvotes: 6

Related Questions