PC Review


Reply
Thread Tools Rate Thread

Build Assembly from command line

 
 
Rob
Guest
Posts: n/a
 
      17th Sep 2005
Hello,

I have a C# file that I want to build into a dll assembly.
The big problem I have in doing this are the 2 required
references in the file.

One reference is to the Interop Assembly SHDocVW,
and the second reference is to mshtml .

The code for the C# file begins as follows:

using System;
using System.Collections;
using System.Diagnostics;
using System.Threading;
using mshtml;
using SHDocVw;


namespace IEAutomation {
/// <summary>
/// Summary description for IEDriver.
/// </summary>

public class IEDriver {


blah blah


}
}

I have tried to use the following command line exe that spits
out error messages on the 2 references :

csc /out:IEDriver.dll /t:library IEDriver.cs

please help, sincerely Rob

 
Reply With Quote
 
 
 
 
Rob
Guest
Posts: n/a
 
      18th Sep 2005
Nevermind, I found the answer:

csc /target:library /out:IEDriver.dll /reference:Interop.SHDocVW.dll /reference:Microsoft.mshtml.dll IEDriver.cs
"Rob" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
Hello,

I have a C# file that I want to build into a dll assembly.
The big problem I have in doing this are the 2 required
references in the file.

One reference is to the Interop Assembly SHDocVW,
and the second reference is to mshtml .

The code for the C# file begins as follows:

using System;
using System.Collections;
using System.Diagnostics;
using System.Threading;
using mshtml;
using SHDocVw;


namespace IEAutomation {
/// <summary>
/// Summary description for IEDriver.
/// </summary>

public class IEDriver {


blah blah


}
}

I have tried to use the following command line exe that spits
out error messages on the 2 references :

csc /out:IEDriver.dll /t:library IEDriver.cs

please help, sincerely Rob

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Build all from command line graham.king@gmail.com Microsoft Dot NET 5 4th Aug 2006 02:25 PM
Failed Command Line Build Matt Microsoft C# .NET 5 26th Mar 2004 05:36 PM
command line output on .Net command line build John Biddiscombe Microsoft VC .NET 2 24th Feb 2004 09:15 PM
Command-line compiler can't find assembly in GAC Frank Rizzo Microsoft C# .NET 4 19th Jan 2004 05:46 PM
incremental build via command line Xavier Microsoft C# .NET 1 10th Sep 2003 12:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:21 PM.