调试一个项目时阻止Visual Studio构建所有项目 [英] Preventing Visual Studio from building all projects when debugging one

查看:98
本文介绍了调试一个项目时阻止Visual Studio构建所有项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个解决方案,其中包含几个不同的项目:几个dll项目,一个控制台项目和几个WCF项目.

I have a solution with a few different projects in it: a couple dll projects, a console project, and a couple WCF projects.

控制台项目使用其中一个项目的dll,但是我设置了VS,因此控制台项目没有依赖项.但是,当我调试控制台项目时,VS将启动或构建所有项目.这只是一个痛苦,因为WCF项目都将编译并启动WCF客户端或asp.net dev IIS进程.有办法防止这种行为吗?

The console project uses a dll from one of the projects, but I have VS set so that the console project has no dependencies. However, when I debug the console project VS launches, or builds all my projects. This is just a pain since both the WCF projects compile and launch the WCF client or the asp.net dev IIS process. Is there a way to prevent this behavior?

我已经修好了.为了阻止WCF库启动,我遵循以下步骤:如何防止Visual Studio在Debuggin中启动WcfSvcHost.exe?

I have semi fixed it. To prevent the WCF library from launching, I followed this: How to Prevent Visual Studio launch WcfSvcHost.exe in Debuggin?

但是我仍然无法阻止asp.net开发服务器的启动.

But I still cant stop the asp.net dev server from launching.

推荐答案

右键单击您的解决方案,然后转到属性",配置属性",然后选择要编译的项目.

Right click on your solution, then go to Properties, Configuration Properties and select the projects you want to be compiled.

这篇关于调试一个项目时阻止Visual Studio构建所有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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