1. 測試檔案
// FileName: App1.cs
class app
{
[System.STAThread]
static void Main()
{
w1 w = new w1();
w.ShowDialog();
}
}
class w1:System.Windows.Window
{
}
2. 編譯指令
csc /out:App1.exe /target:winexe app1.cs /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\presentationframework.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\windowsbase.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\presentationcore.dll"
3. 結果
沒有留言:
張貼留言