Visual Studio: Set default project on project or solution settings

旧街凉风 提交于 2019-12-23 06:49:19

问题


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.

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.

Is there another way to set these values? Something like a setting on the .sln or .proj files?

Thanks


回答1:


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.



来源:https://stackoverflow.com/questions/4797481/visual-studio-set-default-project-on-project-or-solution-settings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!