Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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
Posted
Updated 16-Jun-16 4:25am
v2
Comments
Sergey Alexandrovich Kryukov 16-Jun-16 10:32am    
Do you really want to create a brand-new compiler, or do you want to use an existing one (and then, the problem would be licensing and legal issues)? I also doubt that many users would be interested, because free of charge or open-source compiler is not a problem these days; and posting code, and especially receiving the compiled assemblies back, via Web, would be too slow. Also, do you want to execute compiled applications in browser? It's quite possible, and, I would say, the only interesting part of it.

So, this is all possible (assuming you have the compiler itself). But then, what's the problem? What have you tried so far?

—SA
sandeep manzhi 16-Jun-16 10:36am    
I am use a existing C#.net compiler in the web server for using online.for a end user that is using a website for coding.
Sergey Alexandrovich Kryukov 16-Jun-16 11:29am    
You answered only one of my questions. How are you going to solve the licensing problem, anyway.
And what is your technical problem? You can always use an available compiler with ASP.NET.
—SA

1 solution

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!
 
Share this answer
 
Comments
ZurdoDev 16-Jun-16 11:49am    
Possibly something like https://dotnetfiddle.net/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900