Hi All,
I am trying to figure out a way to automate the process of adding existing dependent projects to the current solution in the solution explorer. Currently, we can manually add existing dependent projects to the solution by right clicking on solution explorer Add-> Existing Project and then selecting and opening it.
I know that if we open a *.sln file in notepad, it contains information about the projects that make up this solution. So, based on this information we can manually add these projects to the solution, If the main solution file is moved to a different location.
I have developed a windows application (install Project) that ?copies? the selected main solution file to the desired location. But, when I open that solution file from that new location it says, dependent files are not available. So, I manually add them to the solution as explained above. But, is there a way to automate this process of adding dependent files to the current solution when the current .sln file is moved/copied to a new location?. Something like parsing the .sln file looking for dependencies (dependent projects) and then adding them automatically to the solution Or atleast automating the process of copying the dependent project files present at different location than the actual solution files in to the same folder when the actual solution is copied.
If at all I have to program this, is it practically possible to write this code in visualstudio.net windows application?. If so how complex is this to achieve?.
Any Ideas or web references on this OR any other completely different Ideas.
Thanks,