一不小心就學會怎麼寫 WCF 程式了,科科。
下指令:
Run the C# compiler like this:
c:\windows\Microsoft.NET\Framework\v3.5\bin\csc.exe
/t:exe /out:MyApplication.exe MyApplication.cs ...
路徑可能會變,也許是 v4.0 或 v4.5
如果是要 build asp.net c# 為dll 要改成 /target:library /out:bin\your-name-space.dll your-cs …
相關文章:
使用 csc.exe 建置命令列
https://docs.microsoft.com/zh-tw/dotnet/csharp/language-reference/compiler-options/command-line-building-with-csc-exe
HOW TO:裝載和執行基本 Windows Communication Foundation 服務
https://docs.microsoft.com/zh-tw/dotnet/framework/wcf/how-to-host-and-run-a-basic-wcf-service
Compiling and Running Code Examples
https://technet.microsoft.com/en-us/library/ms160695(v=sql.90).aspx
HOW TO:在 IIS 中裝載 WCF 服務
https://docs.microsoft.com/zh-tw/dotnet/framework/wcf/feature-details/how-to-host-a-wcf-service-in-iis
HOW TO:在 Managed 應用程式中裝載 WCF 服務
https://docs.microsoft.com/zh-tw/dotnet/framework/wcf/how-to-host-a-wcf-service-in-a-managed-application
How to: Host and Run a Basic Windows Communication Foundation Service
https://docs.microsoft.com/en-us/dotnet/framework/wcf/how-to-host-and-run-a-basic-wcf-service