对解决方案中的项目进行排序
这对我来说确实很烦人,而且搜索还没有找到明确的解决方案。
Visual Studio 2008 的同一 .sln 文件以不同的方式对项目进行排序。 在我的办公室,我的 Web 项目位于顶部,我的 3 个网站位于下面(似乎是默认的字母顺序,这很好!)。
在家里,安装了相同版本的 VS 和 SP,但其中一个 Web 项目出现在列表底部。 顺序不同只是一个痛苦,我可能在这里遇到了一些个人完美主义问题,但我希望以相同的方式订购相同的解决方案。
我试过这个: http://solutionsorter.codeplex.com
但打开 .sln 时它会爆炸文件。
有什么想法吗?
This ones really an annoyance on my end and searching hasn't resulted in a clear fix yet.
The same .sln file for Visual Studio 2008 is ordering projects in a different way. In my office, I have both my Web Projects at the top and my 3 Websites below (seems to be default alphabetical ordering which is fine!).
At home, same version of VS and SP installed, but one of the Web Projects appears at the bottom of the list. It's just a pain that the order is different, I probably have bit of a personal perfectionist issue going on here but I would expect the same Solution to be ordered in the same way.
I've tried this: http://solutionsorter.codeplex.com
But it bombs out on opening the .sln file.
Any ideas out there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
只是一个想法,但您是否曾经使用解决方案文件夹来组织您的解决方案? 我有一个通用的顺序,我喜欢在其中列出我的项目,因此我开始创建以数字开头的根解决方案文件夹,并在其中添加子解决方案文件夹,将每个项目按特定类型进行分组。 例如:
这种方法效果很好,可以使大型解决方案井井有条,但如果您的解决方案中只有几个项目,则可能有点过分了。 您可以尝试根文件夹,按照您喜欢的顺序编号。
Just a thought, but have you ever used Solution Folders to organize your solutions? I have a common ordering that I like my projects to be listed in, so I started creating root solution folders that start with a number, and inside of them I added child solution folders that group each project by a particular kind. For example:
This works out nicely and keeps large solutions organized, but may be overkill if you only have a few projects in your solution. You might just try the root folders, numbered in the order you preferr.
是否在每台计算机上以不同的大小写保存? 有时 ProjectA 与 projectA 不同。
否则,请告诉我们更多信息,我们需要更多线索:)
Is it being saved in different case on each computer? Sometimes ProjectA is not the same as projectA.
Otherwise, tell us more, we need more clues :)
您是否尝试过删除两个 .suo 文件? 或者删除然后重新添加怎么样。
据我所知,项目应该按字母顺序排列。
在 connect 中编辑它,也许你应该投票给 vs10
编辑2:
如果您的项目是文件系统网站,则您计算机上的路径可能会有所不同,
例如,
如果在工作中您有
和
D:\ThatProject\MyWebsite2
和在家里你有
,
这将导致不同的顺序
Have you tried deleting both of your .suo files? Or how about removing then re-adding.
As far as I know projects should be in alphabetical order.
Edit its in connect perhaps you should vote it up for vs10
Edit 2:
If you projects are file system Websites the path on you machine may make a difference,
e.g.
If at work you have
and
D:\ThatProject\MyWebsite2
and at home you have
and
this will cause a different order