compiling under C# - WeOnlyDo Discussion board

compiling under C# (wodFtpDLX / wodFtpDLX.NET)

by ed, Friday, October 22, 2004, 03:42 (7117 days ago)

Hi again,

I'm trying to compile a library with the wod components:

csc /r:wodCertificate.dll /r:wodFtpDLX.dll /lib:c:WINNTsystem32 /t:library /out:test.dll test.cs

I get a Metadata file can't be opened error.

What are the correct arguments to compile?

Re: compiling under C#

by wodSupport, Friday, October 22, 2004, 16:17 (7116 days ago) @ ed

Hi.

You cannot link directly with wodFtpDLX. You must create interop wrapper so you can link with NET assemblies. You can use TLBIMP.EXE that can be found (well, on my computer at least) in [code]C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin[/code]

Once you do that, you will see new file wodFtpDLXComLib.DLL created. Now link with that one instead of ActiveX DLL, and it will work.

Regards,
Kreso