Visual Studio解决方案中的项目订单 [英] Project Order in Visual Studio Solution

查看:138
本文介绍了Visual Studio解决方案中的项目订单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2008中,由什么决定项目在解决方案文件夹中的显示顺序?这不是字母顺序,也不是构建顺序.

In Visual Studio 2008, what determines the order in which projects appear within a solution folder? It's not alphabetical order, nor is it build order.

我找不到改变项目列出顺序的任何方法.我试图删除我的 .suo 文件,以及在 .sln 文件中移动内容.都没有任何作用.

I cannot find any way of altering the order in which projects are being listed. I've tried removing my .suo file, as well as moving things about in the .sln file. Neither had any effect.

如何更改项目的显示顺序?

推荐答案

Connect.Microsoft.com上已经放置了一个反馈请求,因此,您将不得不等待永久性解决方案.

There is a feedback Request already placed at Connect.Microsoft.com so, you will have to wait for the permanent solution.

http://connect.microsoft.com/VisualStudio/feedback/details/468874/solution-explorer-project-sort-order (已被替换为Wayback Machine链接,因为原始链接已删除)

http://connect.microsoft.com/VisualStudio/feedback/details/468874/solution-explorer-project-sort-order (replaced with Wayback Machine link as original was removed)

可以使用临时解决方法,但我感觉还不够好.其中之一是:

Temporary workarounds are available but not good enough I feel. One of them is:

F2 重命名项目,然后按 Enter 而不更改名称.这会暂时对该文件夹中的项目进行排序.

Press F2 to rename a project, then press Enter without changing the name. This temporarily sorts the projects within that folder.

(根据 http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/79d46a69-386e-4ad8-b9cb-b00d4252495b/?prof=required )

或使用 http://solutionsorter.codeplex.com/更改SLN以进行永久修复如果您的解决方案文件夹未嵌套(它解决了我的问题)

Or use http://solutionsorter.codeplex.com/ to alter SLN for permanent fix if your solution folders are not nested (it ate my solution)

但是,如果您关闭并打开解决方案,这将无法正常工作.

But this will not work if you close and open the solution.

如果使用Resharper,则可以按 快捷键 CTRL + N 可以找出答案 解决方案中的文件,然后 CTRL + F12 在文件中找出方法.

If you use Resharper, you can press the short cut CTRL + N to find out files in solution and CTRL + F12 to find out methods in the file.

这篇关于Visual Studio解决方案中的项目订单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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