質問

I read an article recently regarding creating task based WCF service references in this article.

The mechanism that I use to generate my service references for consuming applications is using svcutil in a batch file.

Is it possible to create task based wcf service references with svcutil?

役に立ちましたか?

解決

I haven't tried it yet, but it looks like version 4.5 of svcutil.exe includes Task-Based operations by default. You can use the "/syncOnly" flag to disable Task-Based operations. Source

Also, if you want to include task-based operations within Visual Studio, you can select that option when importing the web service. Source

他のヒント

Add the switch /tcv:version35. It will generate the task based operation by default (provided you should not specify /synconly switch).

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top