关于部分Nunit不能单步执行的问题
2014-05-07 13:21
204 查看
Nunit不能单步执行的罪魁祸首是因为我们的配置文件出现了问题。这样我们需要将我们原有的配置文件重新配置一下
这个配置文件是nunit.exe.config
我们可以直接将下面的代码copy以下放到你 的nunit.exe.config中去。
这个配置文件是nunit.exe.config
我们可以直接将下面的代码copy以下放到你 的nunit.exe.config中去。
<?xml version="1.0" encoding="utf-8"?> <configuration> <!-- Application settings for NUnit-gui.exe. Do NOT put settings for use by your tests here. --> <appSettings> <!-- Uncomment to specify the url to be used for help. If not used, the default value is something like file://localhost/C:/Program Files/NUnit 2.2/doc/index.html This setting is provided in case your default browser doesn't support this format. --> <!-- <add key="helpUrl" value="http://www.nunit.org" /> --> </appSettings> <runtime> <!-- We need this so test exceptions don't crash NUnit --> <legacyUnhandledExceptionPolicy enabled="1" /> <!-- Look for addins in the addins directory for now --> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath="lib;addins" /> </assemblyBinding> <!-- The following <assemblyBinding> section allows running nunit under .NET 1.0 by redirecting assemblies. The appliesTo attribute causes the section to be ignored except under .NET 1.0 on a machine with only the .NET version 1.0 runtime installed. If application and its tests were built for .NET 1.1 you will also need to redirect system assemblies in the test config file, which controls loading of the tests. --> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v1.0.3705"> <dependentAssembly> <assemblyIdentity name="System" publicKeyToken="b77a5c561934e089" culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Data" publicKeyToken="b77a5c561934e089" culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Drawing" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Windows.Forms" publicKeyToken="b77a5c561934e089" culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Xml" publicKeyToken="b77a5c561934e089" culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> </assemblyBinding> <loadFromRemoteSources enabled="true" /> </runtime> <startup> <requiredRuntime version="v4.0.30319" /> </startup> </configuration>
相关文章推荐
- 关于浏览器不能执行JavaScrip问题的反思
- Csdn论坛关于一个模板特化不能执行的问题的修改
- 关于Xgraph不能执行的问题
- 解决VS2005中不能单步执行asp.net的问题
- 关于3月27日部分用户不能访问个人博客前台的问题答复
- 解决VS2005不能单步执行的问题
- 关于3月27日部分用户不能访问个人博客前台的问题答复
- 一个想了好几天的问题——关于8086cpu自己编写9号中断不能单步的问题
- 关于VS2005和VS2008调试时,有些代码不能单步调试问题
- 一个想了好几天的问题——关于8086cpu自己编写9号中断不能单步的问题
- 关于Webview执行goBack不能返回的问题解决
- 关于解决pyinstaller2.1将.py打包成exe文件在中文目录下不能执行的问题
- 关于 barcode4j.jar 条形码生产的部分条形码不能扫描的问题
- 关于myql函数不能执行的问题
- arcgis for js在缓冲区分析中关于 bufferSpatialReference的设置不正确不能执行或者执行错误问题;
- VS”不能设置下面断点“和”无法单步执行“问题
- 关于部分datanode不能正常启动的问题
- 关于Sequence调用一系列动作不能执行的问题
- 关于部分自定义静态库(*.lib)在Pocket PC不能使用的问题
- 关于执行rsh后while不能循环的问题