I need to load two versions of the same DLL in order to compare their outputs. I assume that I can use AppDomains for this, but I need some guidence.
相关问题
- Generic Generics in Managed C++
- How to Debug/Register a Permanent WMI Event Which
- 'System.Threading.ThreadAbortException' in
- Bulk update SQL Server C#
- Should I use static function in c# where many call
Ok, it was actually a lot easier than I imagined.
From here on out I used late binding and/or reflection to run my tests.
Here is a guide to do that:
and when you compile:
or in Visual Studio change the "aliases" field in the property tab of your project references alt text http://www.code-magazine.com/ArticleImage.aspx?QuickID=0507041&Image=Figure%202.bmp
Check out Activator.CreateInstance() on MSDN. Code samples within.
http://msdn.microsoft.com/en-us/library/ms224132.aspx