I have a requirement to build a container C# WinForm Application which will spit out .exe files of another WinForm Application on a button click event.
For eg: I have one Winform App named ProjectA which accepts one startup argument. Now I have a container WinForm App named ProjectB. I want to generate ProjectA.exe programmatically within ProjectB by passing the required parameter to ProjectA app on the button click.
Could not find anything relevant about this on Google. Can anyone throw in some light to achieve this.
Please note that both the Winforms Application must be written in C#.
I have one very vague thought of using MSBuild Command to build ProjectA which in turn will generate its .exe However I am not too clear on this.