Let NUNIT support .NET 2.0

xiaoxiao2021-03-06  38

Today, we must build a unit test environment under .NET 2.0, then follow the previous idea: recompile the source code in a 2.0 environment. There is no error when compiling, but will always report the exception of BadImageFormatexception when performing Debug, and go to Google to search for a long time, no findings can solve this problem.

Finally, I can discover that just make it easy to modify its application's configuration file. The modified place is as follows:

You can get it on top of 1.1. Finally, when I told my colleagues, my colleagues also found that they didn't have to compile them in a 2.0 environment, and they can be modified directly.

转载请注明原文地址:https://www.9cbs.com/read-62706.html

New Post(0)