I have a wsdl file. I can create a new Class Library project in Visual Studio, add the wsdl file as a Web Reference, and then compile the project into a DLL.
What I would like to do is write a program that will automate this. The user will specify the path to the wsdl file and click a button. The program will then automatically do the steps up above.
I am familiar with compiling on-the-fly like this, but am not sure how to incorporate adding the Web Reference.
How can I do this?