Something works here using the fancy dynamic keyword. You will need to refer to another class to pass the test or use the build event to copy through the built-in DLL.
namespace TestLibrary { [TestFixture] public class Tests { [Test] public void FileCheck() { dynamic otherClass = AppDomain.CurrentDomain.CreateInstanceFromAndUnwrap("OtherLibrary.dll", "Prefix.OtherLibrary.SomeClass"); otherClass.SayHello();
Unlike Activator , AppDomain.CurrentDomain.CreateInstanceFromAndUnwrap accepts the file name as the first argument, not the type specifier. This is sometimes useful, especially when you don't care about a strong build name.
source share