编辑sln,proj,suo文件的最佳做法? [英] Best practices for editing sln, proj, suo files?

查看:144
本文介绍了编辑sln,proj,suo文件的最佳做法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在.NET中,每个解决方案/项目都有SUO,SLN,Proj文件.虽然我知道这些文件是什么,但是手动编辑它们是否明智?他们甚至需要编辑吗?如果是这样,最好的方法是什么?

In .NET, there are SUO, SLN, Proj files for every solution/project. Whilst I know what these files are, is it wise to edit them by hand? Do they ever even need to be edited? If so, what is the best way?

谢谢

推荐答案

您可以编辑许多可用文件.甚至在文档 http ://msdn.microsoft.com/zh-cn/library/ms171487(v = VS.90).aspx

You can edit many of the files available. There are even instructions for doing it in the documentation http://msdn.microsoft.com/en-us/library/ms171487(v=VS.90).aspx

解决方案文件不是XML格式,您可以在这里找到有关.SLN文件内容的信息: https://msdn.microsoft.com/en -us/library/bb165951(v = vs.140).aspx

Solution files are NOT in XML format and you can find information on the content of .SLN files here: https://msdn.microsoft.com/en-us/library/bb165951(v=vs.140).aspx

项目文件是MSBuild脚本,因此经常进行编辑(使用工具或手动进行编辑),以包含修改构建配置以满足您的需要的项目.这是指向MSBuild参考的链接,该链接可能会有所帮助: http://msdn.microsoft.com/en-us/library/0k6kkbsd. aspx

Project files are MSBuild scripts so they are frequently edited (either with a tool or manually) to include items that modify the build configuration to meet your needs. Here is a link to the MSBuild reference that may help: http://msdn.microsoft.com/en-us/library/0k6kkbsd.aspx

.SUO文件是您的用户选项,不应直接进行编辑.我亲自使用了二进制编辑器并对其进行了编辑,只是看它是否可以成功完成,但是您需要自己承担风险.

.SUO files are your user options and shouldn't be edited directly. I have personally used the binary editor and edited it just to see if it can be done with success but you do so at your own risk.

这篇关于编辑sln,proj,suo文件的最佳做法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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