Compartir a través de


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 .NET Framework SDK provides compilers for Visual Basic 2005, C#, C++, and JScript 8.0. For compiler-related instructions, see your language documentation.

See Also

Concepts

Exposing COM Components to the .NET Framework
Common Language Specification