Compile on the Command-Line:
gmcs Form1.cs Program.cs Form1.Designer.cs -r:System.Windows.Forms -r:System.Drawing -r:System.Data -out:Form1.exe -codepage:utf8
*Form1.exe ------- 生成されるアプリケーションファイル
*Form1.cs ------------- イベントハンドラやコード等(Partial Class for Forms)
*Form1.Designer.cs --フォームのレイアウト情報 (Partial Class for Forms)
*Program.cs ------------- Startup Program (Class: Program ) and Main
// --------------------------------------------------------
// Run Startup : Program.cs
//---------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace foobar
{
static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
// --------------------------------------------------------
// Form Program: Form1.cs
//---------------------------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace foobar
{
// Form の継承
public partial class Form1 : Form
{
// コンストラクタ
public Form1()
{
InitializeComponent();
}
//-- イベントハンドラ --
}
}