Compiling from the command prompt

  • Thread starter Thread starter mikkel_strack
  • Start date Start date
M

mikkel_strack

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
 
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:out.exe input.cs


regards
Ansil
Trivandrum
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top