I should clarify that I am looking for a client-side solution.
Alternatively, is there a C# compiler written in managed code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On the Client
Take a look at the Dynamic Language Runtime if you’re using Silverlight 2.0:
Server or Client with Full Trust
This example uses the Microsoft.CSharp.CSharpCodeProvider, compiles on the server, and sends the assembly down to the client:
There’s a VB equivalent. They allow you to compile to disk or in memory. In most cases you can’t use them on the client because they require full trust.
Other examples:
Silverlight with full trust: