How to add a Service Reference to a net8.0 Console App (Missing Menu Item)

Jack Art 20 Reputation points
2024-04-15T13:03:15.48+00:00

When you create a Console App in Visual Studio 2022 v17.9.6 as a net8.0 VB project, the ability to add a WSDL service reference is missing from the project context menu:

User's image

It is also not in the "Connected Service" dialog:

User's image

However, if you create the same VB Console App using Framework v4.8.1, the option is available and I can add my WSDL from the web:

User's image

Here it is added in:

User's image

How do you add a WSDL into a net8.0 VB Console App? This is the new project build I selected to start the development:

User's image

When I select a C# net8.0 project, the menu item is there! I need it in VB. I believe Microsoft forgot to add this to VB projects.

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2024-04-16T07:24:07.1766667+00:00

    Hi @Jack Art

    Welcome to Microsoft Q&A! 

    The “Add Service Reference” functionality is only available in the .NET Framework projects. 

    For .NET Core projects (including the .NET 8.0 target), you can use the WCF Web Service Reference tool to add service reference. But it only supports C# projects currently

    For more information, you can see: Use the WCF Web Service Reference Provider Tool

    About adding VB support in WCF Web Service Reference Provider Tool, you can follow this link to see the progress. 

    Thanks for your understanding! 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.