Skip to content

Instantly share code, notes, and snippets.

@azechi
Last active December 14, 2015 00:59
Show Gist options
  • Save azechi/fd665f38d647975cb91b to your computer and use it in GitHub Desktop.
Save azechi/fd665f38d647975cb91b to your computer and use it in GitHub Desktop.
WCFクライアントコード生成
:: v3.5のwcfクライアントコードを生成する
:: レジストリを検索して %windowsSdkDir% を設定
call "%VS100COMNTOOLS%VCVarsQueryRegistry.bat" 32bit No64bit
call set path=%windowsSdkDir%bin\NETFX 4.0 Tools;%windowsSdkDir%bin;%path%
:: ※HogeServiceフォルダには余分なファイルが無いこととする
:: ※サービス定義の既定の名前空間を Fuga.Piyo に変換する
svcutil /t:code "$(SolutionDir)etc\ServiceReference\HogeService\*.*" /async /noConfig /targetClientVersion:Version35 /namespace:http://tempuri.org/,Fuga.Piyo /out:HogeServiceProxy.cs /directory:"$(ProjectDir)ServiceProxy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment