-
-
Notifications
You must be signed in to change notification settings - Fork 142
Closed
Description
Hello.
Probably I think I'm overlooking the basics, but I couldn't solve it by looking at the Wiki or Issues, so please help.
I have registered two projects in one solution.
- Util - Class library without DLLExport.
- DllExportTest - Class library with DLLExport. It references the Util project.
In this state, if you build DLLExportTest and call the function, FileNotFoundException will occur before entering the process. The content of the message is that "Util, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" cannot be found.
What kind of preparation does DllExport have to do to reference the project?
DLLExportTest/Main.cs
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace DllExportTest
{
public class Dll
{
[DllExport]
public static bool load(IntPtr dllDirPathPtr, int len)
{
var util = new Util.UtilClass();
return true;
}
}
}Util/UtilClass.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Util
{
public class UtilClass
{
}
}