我用文本编辑器打开一个.sln文件,它看起来像一个树结构,但它不是xml格式。
知道是什么格式吗,能不能用C#来处理,像处理xml一样方便?
最佳答案
这里是格式的描述:https://msdn.microsoft.com/en-us/library/bb165951(v=vs.140).aspx
你是对的,它不是 XML,而是另一种基于文本的格式:
The .sln file contains text-based information the environment uses to find and load the name-value parameters for the persisted data and the project VSPackages it references.
要解析文件,您可以查看以下问题:Parsing Visual Studio Solution files
关于xml - Visual Studio : What is the format of "*.sln" file? 这不是 xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31264589/