Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Compiling my code not working in C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tshad - 15 Sep 2007 21:55 GMT
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
Cowboy (Gregory A. Beamer) - 16 Sep 2007 04:24 GMT
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.

Signature

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

*************************************************

| Think outside the box!

*************************************************
>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
[quoted text clipped - 26 lines]
>
> Tom

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.