是什么决定默认的启动项目? [英] What determines the default startup project?

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

问题描述

我有一个包含Visual Studio项目文件的开源项目.有一个包含四个项目文件的解决方案文件.分发并解压缩源文件后,Visual Studio会选择错误的项目作为默认项目.新用户不知道他们需要右键单击某个项目,然后选择 设置为启动项目 .

I have a open source project that include Visual Studio project files. There is a solution file with four projects files. When the source files are distributed and unpacked, Visual Studio picks the wrong project as the default project. New users don't know they need to right click a certain project, and then select Set as Startup Project.

我尝试对解决方案文件中的项目进行重新排序,因此首先要使用适当的项目,并且我尝试了对适当项目的UUID进行更改,使其最低.两者都没有解决Visual Studio选择错误的启动项目的问题.

I've tried re-ordering the projects in the solution file so the appropriate project is first, and I tried changing the UUID on the appropriate project so its the lowest. Neither have helped with the problem of Visual Studio selecting the wrong startup project.

我测试的Visual Studio版本是Visual Studio 2005、2008、2010、2012、2013和 2015 .

The Visual Studio versions I test against are Visual Studio 2005, 2008, 2010, 2012, 2013 and 2015.

由什么决定默认的启动项目?

What determines the default startup project?

如何确保Visual Studio选择正确的启动项目?

What can I do to ensure Visual Studio selects the correct startup project?

一个相关的问题是为什么设置为启动"选项存储在suo文件而不是sln文件中?它会问为什么...",而不会问如何...".

A related question is Why is "Set as Startup" option stored in the suo file and not the sln file?, but it asks "Why..." and does not ask "How To...".

推荐答案

  1. 如果有* .suo文件,则将Startup Project保存在其中.
  2. 否则,*.sln文件中列出的第一个项目将是Startup.

(已通过VS 2013测试)

(tested with VS 2013)

这篇关于是什么决定默认的启动项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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