I have a C # dll ( my_cs_dll.dll) project that defines a static class with a static member function.
namespace Foo
{
public static class Bar
{
public static double GetNumber() { return 1.0; }
}
}
I also have a C ++ dll project that uses / clr.
#using <my_cs_dll.dll>
double get_number_from_cs() { return Foo::Bar::GetNumber(); }
I added a link to 'my_cs_dll.dll'in the "Links to General Properties" section of the C ++ project (copy local / copies).
And I also added a path to 'my_cs_dll.dll'in the C ++ project of the project "Configuration Properties" C / C ++ "Allow # using links".
Everything builds without errors, but at runtime I continue to get the "System.IO.FileNotFound" exception from the system, stating that I cannot find the assembly my_cs_dll.dll.
Both Dlls are definitely present in the same directory I am running from.
, , , manged/unmanaged interop, , ...
VS2008 .NET 3.5