I can not compile my first C# Interop program without Visual Stud
Hi folks,
I can not compile my first C# Interop program without Visual Studio:
step 1: I downloaded tha PIA, and verified the assemblies in GAC in my
machine.
step 2: I created a simple C# console program with one line like
using Microsoft.Office.Interop.Excel;
step 3: I compiled it with the following code:
csc /r:Microsoft.Office.Interop.Excel.dll testInterop.cs
But, the compiling error message showed the dll can not be found.
Please advise. Thanks.
PeterK
Date:Tue, 3 Jul 2007 07:24:01 -0700
Author:
|
Re: I can not compile my first C# Interop program without Visual Stud
>step 3: I compiled it with the following code:
> csc /r:Microsoft.Office.Interop.Excel.dll testInterop.cs
> But, the compiling error message showed the dll can not be found.
The compiler will not reference an assembly from the GAC. Point it to
a copy of the assembly located somewhere else.
Mattias
--
Mattias Sjgren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Date:Tue, 03 Jul 2007 22:46:56 +0200
Author:
|