Was your C# code originally created in Visual Studio? If so, then you'll probably have a Form1.Designer.cs
file as well as the file containing the code that you've written by hand. You need to include the file in the command line.
If this isn't C# code originally created in Visual Studo, you may not even have an InitializeComponent
method... but in that case you'll need more code to do anything useful in your form (like creating the button and hooking up its Click
event).