How to compile and attach another file in C # without having Visual Studio and additional compilers?
The bottom line is. I specify the program document .pdf, .doc-it generates an exe-file and stitches a file into it. And then the user starts the exe, enters, for example, a password and this .pdf, .doc file is copied to the folder with the application.
I read that .Net has a compiler, because in addition to other computers, no one will install more software.

  • Do you really need an exe-shnik here? A password-protected ZIP isn't good? - Alexander Alexeev
  • yes, exe is needed - Rakzin Roman

1 answer 1

You can compile the program without using IDE, in this case Visual Studio.

Microsoft ships the csc.exe console compiler.

About what arguments to pass to the command line can be read here.

It is important that the necessary Framework be installed on the machine and anyway.