문제

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