Skip to content

Support Statement: missing IDF for mscoree.dll

In VB6 projects that integrate with .NET, the VBP may contain something like the following:

Object={13A99F56-1D22-45C9-AB43-9F4D5CBD945C}#1.0#0; mscoree.dll

mscoree supports .NET runtime operation. Your VB6 code will not typically reference the mscoree API directly, but this reference is there anyway, presumably to support integration behind the scenes.

gmStudio may fail to automatically create an IDF for mscoree.dll because it is not a typical COM registration. This causes the VBP to have Dependency Status=~IDF and the mscoree reference to have status=NOTFOUND.

If you find your VB6 code does not actually need this API, you can resolve the missing reference with a hand-coded “stub IDF”. Place the following xml in a mscoree.dll.xml file in your user folder:

<DescriptionFile>
<library id="mscoree.dll"
name="mscoree"
netVersion="1.0"
source="mscoree.dll"
location="DoNotDeclare"
migName="mscoree"
type="LocalImport"
>
</library>
<!--
Description: mpty IDF for mscoree.dll import in .NET reference
-->
</DescriptionFile>

Note, if your VB6 code actually uses mscoree explicitly, it is likely you will reference mscoree.tlb.

See also