Visual Studio:设置默认启动项目 [英] Visual Studio: Set default startup project

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

问题描述

我有一个包含多个项目的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:设置默认启动项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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