.net core add Web Reference

Viewed 9773

I have two Web Project.

First was created about 2-3 weeks ago and Second today.

I want to add Web Reference to the second web project.

First old Project Solution View

First old Project Solution View

Second new Project Solution View

enter image description here

In new Project I can't find how to add Web Reference. I can add Service Reference but I don't need it.

From here I can add Service Reference

enter image description here

but I can't add Web Reference Like it was in old project

enter image description here

From where I should add Web Reference? Is there any changes regarding web references?

2 Answers

Here's what I would try in a command line:

  • cd "Full path to folder where ConsoleApp1 project lives"
  • dotnet add package "Full path to Test projects .csproj file"

This command should edit your ConsoleApp1.csproj file. Then you can try to build it with:

  • dotnet build
  • Select old project in Solution Explorer.
  • Click 'Show All Files' button Solution Explorer toolbar.
  • Service node will be expanded and you will see the nested nodes with generated code.
  • You should find the link to WSDL file, which describes your web service.
  • To load a service metadata from a WSDL file, select Browse in Add Web Reference dialog.
Related