如何在.Net中读取.SLN文件? [英] How to Read .SLN file in .Net?

查看:172
本文介绍了如何在.Net中读取.SLN文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的项目阅读解决方案文件,让我知道解决方案解析器之外的其他机制.

I want to read solution file for my project, let me know the mechanism other than solution parser.

推荐答案

SLN文件是文本文件,您可以获取阅读第一行来获取解决方案文件的版本:
SLN files are text files, you can get the version of the solution file by reading the first line :
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "consoletest", "consoletest\consoletest.csproj", "{6BADD8B3-618E-412A-BBCA-8420EFD5B62E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "fastJSON", "fastJSON\fastJSON.csproj", "{207E91B1-C9F8-4913-88E1-3549EF5F3273}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests", "UnitTests\UnitTests.csproj", "{F4BFF0D2-45F6-413B-B1E7-BC4A0D6596FC}"
EndProject
...


您也可以从上面看到项目名称.


The project names are there also as you can see from the above.


这篇关于如何在.Net中读取.SLN文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆