PC Review


Reply
Thread Tools Rate Thread

Compiling from the command prompt

 
 
mikkel_strack
Guest
Posts: n/a
 
      15th Feb 2005
Im doing an application, where I have to compile from the command
prompt. Like the line shown below.
csc /optimize+ /t:exe /r:ClassTest.dll /out:Form1.exe Form1.cs

The problem is that Im using Microsoft.Office.Interop.Outlook, wich is
no problem as long as I compile from MS Visual .Net. I don't know how
I make a reference to that when I compile in the prompt.

Can anybody help??

Mikkel
 
Reply With Quote
 
 
 
 
Dan Bass
Guest
Posts: n/a
 
      15th Feb 2005
there is a /reference switch for adding references with the csc compiler...

for more info:
http://msdn.microsoft.com/library/de...omFileList.asp
[beware of line wraps]

"mikkel_strack" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Im doing an application, where I have to compile from the command
> prompt. Like the line shown below.
> csc /optimize+ /t:exe /r:ClassTest.dll /out:Form1.exe Form1.cs
>
> The problem is that Im using Microsoft.Office.Interop.Outlook, wich is
> no problem as long as I compile from MS Visual .Net. I don't know how
> I make a reference to that when I compile in the prompt.
>
> Can anybody help??
>
> Mikkel



 
Reply With Quote
 
=?Utf-8?B?QW5zaWwgTUNBRA==?=
Guest
Posts: n/a
 
      15th Feb 2005
hi
you have to use tlbimp.exe to import the type library of outlook to
interoperate with your .net application
eg :tlbimp YourOutlooktlb.tlb /out:myDNET.dll

then add reference to the created dll when you complie your application

csc /reference:myDNET.dll /outut.exe input.cs


regards
Ansil
Trivandrum



"mikkel_strack" wrote:

> Im doing an application, where I have to compile from the command
> prompt. Like the line shown below.
> csc /optimize+ /t:exe /r:ClassTest.dll /out:Form1.exe Form1.cs
>
> The problem is that Im using Microsoft.Office.Interop.Outlook, wich is
> no problem as long as I compile from MS Visual .Net. I don't know how
> I make a reference to that when I compile in the prompt.
>
> Can anybody help??
>
> Mikkel
>

 
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
Changing prompt from C:\documents and settings\ to C:\ within command prompt Nulligan@gmail.com Windows XP General 4 1st Aug 2006 08:10 PM
Compiling from the command line Ron L Microsoft VB .NET 5 28th Oct 2005 03:45 PM
Compiling from command line... =?Utf-8?B?RGFuaWVsZQ==?= Microsoft VB .NET 6 24th Jan 2005 06:02 PM
Compiling from the command line Sathyaish Chakravarthy Microsoft C# .NET 2 29th May 2004 01:24 PM
compiling from the command line MCSD Microsoft VC .NET 3 8th Jan 2004 07:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:02 PM.