Friday, July 26, 2013

Adding a web reference to a class library project in Visual Studio when the option is not in the dropdown

If Visual Studio does not have a folder entitled Web References, you will not be able to right click and Add Web Reference to your project. This is common in Class Library projects.

There is a simple workaround. You should be able to add a generic Service Reference.

Right click your project and Add Service Reference. Click Advanced.




Then select Add Web Reference at the bottom of the dialog. That'll let you add a Web Reference like normal. YAY.


Hope that helps you fix the issue with being unable to add a web reference in a visual studio class library!

No comments:

Post a Comment