1.編譯 File.cs 以產生 File.exe:
csc File.cs
2.編譯 File.cs 以產生 File.dll:
csc /target:library File.cs
3.編譯 File.cs 并創建 My.exe:
csc /out:My.exe File.cs
4.通過使用優化和定義 DEBUG 符號,編譯當前目錄中所有的 C# 文件。輸出為 File2.exe:
csc /define:DEBUG /optimize /out:File2.exe *.cs
5.編譯當前目錄中所有的 C# 文件,以產生 File2.dll 的調試版本。不顯示任何徽標和警告:
csc /target:library /out:File2.dll /warn:0 /nologo /debug *.cs
6.將當前目錄中所有的 C# 文件編譯為 Something.xyz(一個 DLL):
csc /target:library /out:Something.xyz *.cs
csc File.cs
2.編譯 File.cs 以產生 File.dll:
csc /target:library File.cs
3.編譯 File.cs 并創建 My.exe:
csc /out:My.exe File.cs
4.通過使用優化和定義 DEBUG 符號,編譯當前目錄中所有的 C# 文件。輸出為 File2.exe:
csc /define:DEBUG /optimize /out:File2.exe *.cs
5.編譯當前目錄中所有的 C# 文件,以產生 File2.dll 的調試版本。不顯示任何徽標和警告:
csc /target:library /out:File2.dll /warn:0 /nologo /debug *.cs
6.將當前目錄中所有的 C# 文件編譯為 Something.xyz(一個 DLL):
csc /target:library /out:Something.xyz *.cs
浙公網安備 33010602011771號