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.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
 

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

Similar Threads

Can't run csc.exe? 7
Compiling With VBC 3
Arraylist not defined 2
Business Objects? 2
DateAdd Function and error BC30451 1
Manual Compiling 1
Response.Write In Class? 1
Business Component missing dlls 14

Top