473,473 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Build Assembly from command line

Rob
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

Nov 17 '05 #1
1 2200
Rob
Nevermind, I found the answer:

csc /target:library /out:IEDriver.dll /reference:Interop.SHDocVW.dll /reference:Microsoft.mshtml.dll IEDriver.cs
"Rob" <rl*****@worldnet.att.net> wrote in message news:e1**************@TK2MSFTNGP12.phx.gbl...
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

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
1
by: Grant Edwards | last post by:
I've been using the pylibpcap extension module for several years, but I can't get it to build under 2.4: $ python setup.py build /usr/lib/python2.4/distutils/dist.py:222: UserWarning: 'licence'...
5
by: andrew.bell.ia | last post by:
Hi, I am building my application with the csc compiler from the command line. I am linking in a dll (GuiUtils.dll) which is not in the current directory. The command line looks like: csc...
2
by: alex | last post by:
I've got a control I need to release as both a regular and strong named version. The problem I'm running into is that it seems without creating a new project file and assemblyinfo.cs file I don't...
11
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some...
5
by: JCauble | last post by:
1. We have a web project that has a support dll that uses the following command: HttpContext.Current.Application.ToString(); 2. In our environment we must use a build process that runs from the...
3
by: Shawnk | last post by:
I use two classes to manage the Main() command line (and alot of other stuff) for my prototyping environment. I tryed putting the MainClass in a DLL and just having the other class (which gets...
1
by: AlexZh | last post by:
Hi, I'd like to stop command line build by one project build failed. To do that I've created simple AddIn (see code below), that works fine for IDE and does not work for command line. In the AddIn...
7
by: John Nagle | last post by:
Back in March, I posted this: That was for M2Crypto 0.17. It's still broken in M2Crypto 0.18. And there's no RPM or Windows binary. Nobody actually uses this stuff, do they?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.