在 Visual Studio 2010 中执行单元测试之前如何不构建 [英] How not to build before executing unit tests in Visual Studio 2010

查看:27
本文介绍了在 Visual Studio 2010 中执行单元测试之前如何不构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我运行单元测试时,即使我没有修改任何代码,Visual Studio 也会构建以生成 dll 和 exe.

Whenever I run unit tests, Visual Studio builds to make dlls and exes even when I modified nothing in code.

如果我在运行单元测试之前没有进行任何更改,我如何才能使 Visual Studio 不构建?

How can I make so that Visual Studio doesn't build when I didn't make any changes before running the unit tests?

推荐答案

打开 Tools -> Options... 菜单项,展开 Projects 和Solutions 节点,单击 Build and Run,然后在 On Run, ... 下拉列表中,选择 Never Build.

Open the Tools -> Options... menu item, expand the Projects and Solutions node, click on Build and Run, and in the On Run, ... dropdown, select Never Build.

这篇关于在 Visual Studio 2010 中执行单元测试之前如何不构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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