我有一个包含多个项目的Visual Studio 2010解决方案. 其中一个项目被设置为默认项目,但是我想默认更改它.
I have a Visual Studio 2010 solution with several projects. One of the projects is set as the default project, but I want to change that by default.
我知道我可以右键单击要成为启动项目的项目,然后选择设置为启动项目",但是此设置将存储在用户的文件(.slo和.user文件)中.
I know that I can right click the project I want to be the startup project and select "Set as StartUp project", but this setting will be stored in the user's files (.slo and .user files).
根据公司政策,我们不会在源代码管理系统中检查这些文件,因此,当另一个用户打开解决方案时,它将有一个不同的项目作为启动对象.
As a company policy, we don't check these files in the source control system, therefore when another user opens the solution it will have a different project as the startup object.
还有另一种设置这些值的方法吗?像.sln或.proj文件上的设置一样?
Is there another way to set these values? Something like a setting on the .sln or .proj files?
谢谢
推荐答案来自 Arian Kulp的站点,更改解决方案的默认启动项目的方法是编辑.sln文件.您将看到一些Project和EndProject行.列出的第一个项目将是默认的启动项目,因此只需将所需的项目移到顶部即可.
From Arian Kulp's site, the way to change the default startup project for a solution is to edit the .sln file. You'll see some Project and EndProject lines. The first Project listed will be the default startup project, so just move the one you want to the top.
更多推荐
Visual Studio:在项目或解决方案设置上设置默认项目
发布评论