U
U
up72018-03-14 05:59:16
.NET
up7, 2018-03-14 05:59:16

How can I create executables in a C# Net program?

Tell me, pliz, how exactly can you create a program that would generate ready-made executables at the output? Something like a compiler, but very simple. In fact, I need to create an analogue of the same visual studio, but very much simplified.
Tell me where to dig? Something I don't understand at all.
That is, it is necessary to teach my application to create other applications. Just write your own compiler? Are there any ready-made solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kuznetsov, 2018-03-14
@up7

There is a class called CSharpCodeProvider ( https://msdn.microsoft.com/en-us/library/microsoft... ).
There is a large namespace System.CodeDom.Compiler (although only CodeDomProvider is clearly needed there)
There is Roslyn.
Detail:

  • https://github.com/dotnet/roslyn/wiki/Scripting-AP...
  • https://msdn.microsoft.com/en-us/library/system.co...
  • https://support.microsoft.com/en-us/help/304655/ho...
  • https://joshvarty.com/learn-roslyn-now/
  • www.tugberkugurlu.com/archive/compiling-c-sharp-co...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question