升级的Visual Studio 2010 - 更改代码时不会重新编译测试 [英] Upgraded Visual Studio 2010 - Tests are not recompiling when changing code
问题描述
在VS2008和VS2010中,如果我更新了测试,然后重新运行测试(使用"在上下文中运行测试"),Visual Studio将重新编译测试测试程序集并运行。 (Visual Studio实现了代码更改并且程序集需要重新编译)。
In VS2008 and VS2010, if I updated a test, and then re-ran the test (used the 'Run tests in Context), Visual Studio would recompile the test test assembly and run. (Visual Studio realized code changed and the assembly needed recompiling).
现在在VS2010中,除非我明确指出去"构建 - > "建立项目"将重新运行以前的测试版本。 它经历了像它正在构建的动作,但它实际上并没有使用新代码更新测试程序集。
我也不会看到新的测试,直到我明确构建,这不是以前的情况。
Now in VS2010, unless I explicity go to 'Build -> Build Project' in will just re-run a previous version of test. It goes through the motions like it's building, but it doesn't actually update the test assemblies with new code. I also won't see new test until I explicitly build, which was not the case before.
我确定这是某些设置,但我找不到并且每次都必须明确建立是一种皇家的痛苦。
I'm sure this is some setting somewhere but I can't find it and having to explicity build every time is a royal pain.
推荐答案
如果使用Build |配置管理器,您的测试项目是否已经过检查?
If you use Build | Configuration Manager, is your test project checked to be built?
希望这会有所帮助。
这篇关于升级的Visual Studio 2010 - 更改代码时不会重新编译测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!