简体   繁体   English

在Visual Studio 2010中运行活动项目

[英]Run active project in Visual Studio 2010

Is there a shortcut to run a project in my solution without setting it (set as startup project) and instead correlate it with the active file? 是否有快捷方式在我的解决方案中运行项目而不设置它(设置为启动项目),而是将其与活动文件相关联?

I mean run a project whose file is active, but I don't want it to be the default. 我的意思是运行一个文件处于活动状态的项目,但我不希望它是默认值。 It should be a different shortcut than F10 , because I'm mainly talking about debugging! 它应该是一个不同于F10的快捷方式,因为我主要谈的是调试!

You could set this in the properties of the solution: 您可以在解决方案的属性中设置它:

在此输入图像描述

I don't know of a way to do exactly what you ask, but you can run any project: 我不知道如何做你所要求的,但你可以运行任何项目:

  • right-click the project in Solution Explorer 在解决方案资源管理器中右键单击项目
  • Debug > Start new instance 调试>启动新实例

It doesn't have to be the Start-up project. 它不一定是启动项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM