开发者

Dynamically compile C# code on wp7

开发者 https://www.devze.com 2023-03-03 09:35 出处:网络
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 :(

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.

  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

0

精彩评论

暂无评论...
验证码 换一张
取 消