Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Interoperability
 Compiling an Interop Project

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Developer's Guide
Compiling an Interop Project

COM interop projects that reference one or more assemblies containing imported COM types are compiled like any other managed project. You can reference interop assemblies in a development environment such as Microsoft Visual Studio 2005 and compile your project normally, or you can use a command-line compiler. In either case, to compile properly, the COM-derived assembly must be in the same directory as the other project files.

To reference an assembly with a command-line compiler, use the /reference compiler switch (for Visual Basic 2005 and C# projects) and the name of the DLL containing the imported COM types.

The Windows Software Development Kit (SDK) provides compilers for Visual Basic 2005, C#, C++, and JScript 8.0. For compiler-related instructions, see your language documentation.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker