14. November 2008 14:13
When Visual Studio 2008 came out I thought they got rid of the Add Web Reference dialog used to add web services. If you right click on a Class Library project targeting .NET 3.5 you only had the choice to add two types of references by default: Add Reference and Add Service Reference. I guess they are pushing the use of WCF.
Today I did some digging around and found a way to bring the good old Add Web Reference back (well sort of “back”). You have to Add a Service Reference by right clicking on the project and clicking on Add Service Reference. On the dialog click Advanced and on the bottom you have the Add Web Reference button. Pressing this button will bring the good old Add Web Reference Dialog back. Keep in mind that this dialog will generate 2.0 code.