Open a VS 2005 Solution File (.sln) into memory
问题 I would like to open into memory an existing .sln file. Example of a non-working method: private Solution2 OpenSolution(string filePath) { Solution2 sln; sln.Open(filePath); return sln; } If I have an instance of Solution2 then i can call the method Open; but how can i get an instance of Solution2 ? My goal is then to get the adequate project and read some of its settings... but that's easy having access to the solution. 回答1: You can programmatically create a hidden instance of Visual Studio,