Compiling my code not working in C#

T

tshad

I am running make files to build my dlls. I have a web site where my dlls
are in my bin folder and my classes are in a Class folder as are the make
files.

If I run the following from my Classes file
(c:\inetpub\wwwroot\stw\classes), it works fine

vbc /t:library email.vb /r:system.web.dll /r:system.data.dll /r:system.dll
/r:Microsoft.VisualBasic.dll /r:position.Dll /r:StripHtml.Dll
/r:DBObject.dll

For some reason, I have to put the whole path in from my csc file if my
class is in c#. But I can't find the StripHtml.dll file which is in the
c:\inetpub\wwwroot\stw\bin folder

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc /t:library Position.cs
/r:system.data.dll /r:system.dll /r:nullHandler.dll /r:DBTypes.dll
/r:DBObject.dll /r:StripHtml.dll

It gets the error:

error CS0006: Metadata file 'StripHtml.dll' could not be found

Why does this work for the vbc.exe program but not the csc.exe? Obviously
the StripHtml.dll file is in the bin folder since the vbc.exe program can
find it fine.

Thanks,

Tom
 
C

Cowboy \(Gregory A. Beamer\)

Add a reference in the compilation command line. The reason it works for VB
is the VB compiler is a bit less explicit and allows for a sloppier syntax.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top