How to add a web service reference in a DLL

后端 未结 5 1077
走了就别回头了
走了就别回头了 2021-01-03 00:07

I\'m creating a DLL with a reference to web services (I don\'t have the choice to do so) but I have to add web service references to the project that uses the DLL for it to

5条回答
  •  青春惊慌失措
    2021-01-03 00:38

    You could try looking into svcutil.exe , which allows you to generate the client side proxy code for your service via the command line. You should be able to take the code file that it produces and simply add it to your DLL project. This lets you bypass Visual Studio completely.

提交回复
热议问题