Hello,
I am a bit confused about the problem, did you mean the issue happens when using Visual Studio to build the project, or the issue happens when using Nant to build the project?
If it happens with Visual Studio, please switch to Resource View Window, right-click [ProjectName.rc node], choose "Resource Includes". Verify the following line is in the Compile-time Directives box(0x80029c4a indicate the type library is not embedded):
1 TYPELIB [ProjectName].tlb
http://msdn.microsoft.com/en-us/library/ms221355(VS.85).aspx
If it happens with Nant, my suggestion is that you could try to put the whole solution in the root directory of a volume(e.g d:\, aviod use long path).
#ifndef APSTUDIO_INVOKED
/
//
// Generated from the TEXTINCLUDE 3 resource.
//
1 TYPELIB "mydll.tlb"
/
#endif // not APSTUDIO_INVOKED