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

前端 未结 5 1668
执念已碎
执念已碎 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:31

    You can add a Service Reference as usual (no need for advanced). If the config sections do not appear in app.config, you can click "Configure Service Reference...", and uncheck "Reuse types in referenced assemblies". After that it will correctly generate the sections.

提交回复
热议问题