Visual Studio does not generate app.config content when “add service reference”

前端 未结 5 1669
执念已碎
执念已碎 2020-12-09 01:45

When I add a web service by using \"add service reference\" in the console app, the app.config does not generate the configuration. How do I generate this app.config with a

5条回答
  •  时光取名叫无心
    2020-12-09 02:32

    This will not automatically generate your settings, but to create the web.config settings without the command line, you can right click on your app.config after adding the service reference and click the "Edit WCF Configuration" button to add the elements you need for your web service.

提交回复
热议问题