FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

moq/src/Moq.Tests.ComTypes at main · moayyaed/moq · GitHub

/ moq Public
forked from devlooped/moq

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Moq.Types.ComTypes.dll

This directory contains an assembly Moq.Types.ComTypes.dll containing Component Object Model (COM) interop types, used to test various aspects of Moq compatibility with COM.

This assembly can be built from the ComTypes.idl definition file also contained in this directory.

Building

Requirements

In order to build the DLL, you will need the following tools:

Steps

Open a command prompt and ensure that the tools mentioned above can be found in the PATH. For instance, start Visual Studio's developer command prompt.

Next, you can either run the BuildDLLFromIDL.cmd batch file found in this directory, or run the following equivalent steps manually:

  1. Create a COM Type Library (a .tlb file) from the .idl definition:

    midl.exe /mktyplib203 ^
             /env win32 ^
             /tlb ComTypes.tlb ^
             ComTypes.idl
    
  2. Convert the generated type library to a .NET interop types assembly:

    tlbimp ComTypes.tlb ^
           /out:Moq.Tests.ComTypes.dll ^
           /namespace:Moq.Tests.ComTypes ^
           /keyfile:..\..\Moq.snk ^
           /asmversion:4.0.0.0
    
  3. Optionally verify the generated assembly:

    peverify Moq.Tests.ComTypes.dll
    

Back | FazBrowse Home | New Git URL