xml - Visual Studio : What is the format of "*.sln" file? 这不是 xml

标签 xml file solution

我用文本编辑器打开一个.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/

相关文章:

python - 如何将空格分隔的数据读入 numpy 数组?

c# - 如何修复 "msbuild 4040: There is no target in the project."

visual-studio-2005 - 可以在工程(.vcproj)文件中设置工作目录吗?

Android 在解析 XML 时出错 - 在第 1 行,第 0 列 - 未找到元素

java - JDOM 从根中删除元素

python - 如何在Python中从文件列表中提取字符串?

linux - 在 linux 中使用 sed 替换字符串后面的数字时得到一个额外的数字

xml - 如何解决此错误 "The element type "head"must be terminated > by the matching end-tag "</head>"?

xml - 如何使用 XSD 使列表需要列表 1 值?

Excel vba更快地读取大量文件