You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;namespaceDllExportTest{publicclassDll{[DllExport]publicstaticboolload(IntPtrdllDirPathPtr,intlen){varutil=new Util.UtilClass();returntrue;}}}
Util/UtilClass.cs
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespaceUtil{publicclassUtilClass{}}
Config
The text was updated successfully, but these errors were encountered:
@3F Thanks! As with @Jesse-Schokker, using AssemblyResolve, I was able to load correctly and the problem was resolved. Thanks for your quick answer and great project.
In future case, copy-paste from Data tab is better. Thanks.
Don't worry, just a recommendation since you have already provided minimal info for this issue. It simply covers more cases and requires less image manipulation etc.
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.
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
Util/UtilClass.cs
Config
The text was updated successfully, but these errors were encountered: