DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 3 Jul 2007 07:24:01 -0700,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    Peter
          2    Mattias Sjgren


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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us