Visual Studio 2022 / 2019 Add Web Reference missing

problem

For a .NET Framework project, I want to add a Web Reference using a WSDL file, but there is no Add Web Reference when right clicking a project in Visual Studio 2022 / 2019. Where is it?

solution

It's there, but it's a bit hidden.

  1. Right click the project in Solution Explorer, go on Add and then Service Reference
  2. Click the Advanced button in the lower left corner
  3. There you have it, again in the lower left corner, Add Web Reference

This is for .NET Framework projects, it seems it's nowhere to be found for .NET Core projects.

add service reference

add service reference advanced

add web reference

Gravatar
Author
Dan Dumitru
Last Edit
Aug 1, 2022 at 11:29

3 Comments


Hi Dan, I have a problem with this, in the past 2022 this works fine. Now in 2023 i get a error "Missing File" after clicking "Add Reference", have you got same problem?

Many Thank Ulrich

Gravatar
Ulrich
Jan 30, 2023 at 13:55

Hi Ulrich! It still works for me, I've just tried adding a random WSDL file as a Web Reference.

I'm on the latest version of Visual Studio 2022, 17.4.4

Gravatar
Dan Dumitru
Jan 30, 2023 at 15:03

Hi Ulrich, You probably are using Git right? Empty folders aren't kept. You need to create an empty folder, on the project folder, named something like "Web References". Not sure the precise name, but Google around and you'll find it.

Gravatar
Larissa Jordão
Feb 6, 2023 at 15:21

Your Comment

Feel free to add your improvement suggestions or alternative solutions.
preview
Optional, never shown, displays gravatar.

Formatting Tips

This editor uses Markdown to easily add code in your posts.

Triple backticks for full line(s) of code (or indent 4 spaces)

```
let foo = 'bar';
```

[link text](http://a.com)

*italic* **bold**

More Tips