Dynamically add dll to References of the Solution Explorer

Jan 21 2009 5:42 AM

I would like to give the exact requirement.It goes like this:

I am using a template to place the application under Visual C#.When i want to create a new application I select the template under

Visual C# ,which will in turn prompt a CustomWizard through which the user can enter the parameters required for the

application.In addition the users are given the provision to select the dll's which needs to be added to the new application(which

will be created).

I wanted to know if it is possible to get the selected dll's been added to the References of the Solution Explorer of the new

application programatically ?(as how we can otherwise add dll's manually  using AddReferences and later use them).So that

when the new application is been created we want the selected dll's to be seen under the References.

Any pointers to this would be of great help.

Thanks in adbvance