Open a VS 2005 Solution File (.sln) into memory

后端 未结 4 1644
Happy的楠姐
Happy的楠姐 2020-12-21 12:48

I would like to open into memory an existing .sln file.

Example of a non-working method:

private Solution2 OpenSolution(string filePath)
{
    Soluti         


        
4条回答
  •  萌比男神i
    2020-12-21 13:37

    Solution2 et al are basically parts of Visual Studio SDK, which you'd have to redistribute with your application (with all the licensing implications).

    Since .sln files are plain old XML, you can always open it in XmlDocument and then XPath into it.

提交回复
热议问题