Page 1 of 1

Invalid File Format for C# DLLs

Posted: February 17th, 2006, 4:56 am
by krisp
Hello,

I wrote a plugin in C# using VS.NET 2005 Team Edition. I am unable to load it. I've tried compiling it as a library project as well as a /target:library from the command line. I'm always told that the file format is invalid, however.

Interesting part is that if I compile the same code with the mono freeware compiler the produed DLL works fine.

What am I doing wrong? I've tried both release and debug versions of the DLL VS.NET produces.

Posted: February 20th, 2006, 7:17 am
by limbo
maybe there is a difference between the team edition of vs and the pro.... :smt102
did you experienced the same problem with the demo code?

Posted: February 21st, 2006, 7:36 am
by krisp
any code compiled with it says invalid format as far as trying to get it working in lcdsmartie. I have both .net 1.1 and 2.0 installed as well...

Posted: February 21st, 2006, 8:22 pm
by clansley
Have you downloaded the sample plugins and tried to compile them?

ISTR that for .net there was more than one way to build a dll -- the sample plugin should be trying to use the one that works.