Merging library

moster67

Expert
Licensed User
Longtime User
I have a library which I have re-created in C# and which works fine with my application.

I now wanted to merge this library into my application upon compiling but I get a message that the library still must be distributed separately along with my application. I did copy the code (class.cs). I put it both in my application's directory and in Basic4ppc's library-folder (for the sake of good order) but it still didn't work.

So my question is: do I need to add some specific code in my class-library so Basic4ppc will merge the library into the executable upon compiling?

The only particular thing with the Class-library is that it contains some native code (using DllImport - I believe it's called P/Invoke). Could this be the problem?

Thanks.
 

moster67

Expert
Licensed User
Longtime User
Yes - that was the solution.

Thanks,


You should have one code file named as your library. For example is your library is named Network.dll then you should have a Network.cs file in the libraries folder
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…