如何使用ASP.NET为我的网站实现基于Web的C#编译器 [英] How to implement web based C# compiler using ASP.NET for my web site

查看:46
本文介绍了如何使用ASP.NET为我的网站实现基于Web的C#编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设计一个网站,用于在线编译C#.net代码,给出意图结果

请发送建议并说明如何在服务器上运行?



我的尝试:



为在线网站设计编译器

i want design a website for compile a C#.net code online an give a intent result
please send suggestion and sample how to run on server ?

What I have tried:

design a compiler for online website

推荐答案

如果我是你,在我这样做之前,我会想很久很久。编译器部分很简单:csc.exe随.NET一起安装,因此您可以非常简单地编译应用程序。

但是......你真的想在你的服务器上执行用户代码吗?请记住,您运行的应用程序可以访问您的网站可以访问的任何内容:电子邮件服务器,网站页面,数据库,服务器文件系统,......恶意代码的范围非常高!
If I was you, I'd think long and hard before I did this. The compiler part is easy: csc.exe is installed with .NET so you can compile apps very simply.
But...do you really want to execute user code on your server? Bear in mind that the app you run will have access to anything your website can: email server, website pages, databases, server file system, ... the scope for malicious code is pretty high!


这篇关于如何使用ASP.NET为我的网站实现基于Web的C#编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆