开发者

WCF client proxy class renaming problem

开发者 https://www.devze.com 2023-01-15 10:40 出处:网络
Perhaps others have encountered the same problem.It seems the default class name for a WCF client proxy is Service1Client.When I delete the service reference and recreate it the name keeps coming up t

Perhaps others have encountered the same problem. It seems the default class name for a WCF client proxy is Service1Client. When I delete the service reference and recreate it the name keeps coming up the same. (Although it does give me the opportunity to name the namespace.)

When I chose Refactor/Rename on Service1Client (ie: the class name for the proxy), it fails with the following message:

The file 'Service References\myNameSpace\References.cs' could not be refactored. The current 开发者_JAVA技巧object is autogenerated by the Wcf Client Generator and cannot be renamed.

0

精彩评论

暂无评论...
验证码 换一张
取 消