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 /out

ut.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
>