How could I compile a program programmatically without leaking the source code?

74 Views Asked by At

I've tried using MSBuild in another folder where I've just copied the project path as well as an instance path of MSBuild version 15, it works to compile programmatically with the main C# program using process.start on MSBuild.exe in. But this requires the source code files to be exposed, when a user uses the program to compile the other program, the user could find the source code in the main program folder. What solutions are out there?

0

There are 0 best solutions below