I am asking this question after VERY extensive googling, but there seem to be no comprehensive answer. I have a DLL which implicitly loads another (third-party) DLL. How can I create a manifest/config file/whatever, to load this third-party DLL from another folder? Why I want to do this: My C++ program (MSVC-compiled) needs to use ..
Category : .net-assembly
Why CSharp.dll gets loaded into DefaultDomain and how to avoid this? Console::WriteLine(AppDomain::CurrentDomain->FriendlyName); auto assemblies = AppDomain::CurrentDomain->GetAssemblies(); for (int i = 0; i < assemblies->Length; ++i) Console::WriteLine(assemblies[i]->GetName()); AppDomain^ domain = AppDomain::CreateDomain(ToMngd(L"MyDomain")); ObjectHandle^ handle = domain->CreateInstance(ToMngd(L"CSharpDll"), ToMngd(L"CSharpDll.Class1")); Console::WriteLine(domain->FriendlyName); assemblies = domain->GetAssemblies(); for (int i = 0; i < assemblies->Length; ++i) Console::WriteLine(assemblies[i]->GetName()); AppDomain::Unload(domain); Console::WriteLine(AppDomain::CurrentDomain->FriendlyName); assemblies = AppDomain::CurrentDomain->GetAssemblies(); for ..
Recent Comments