The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

cjs_pro (1) [Avatar] Offline
Hi all,

I have a C# assembly (MyUtility.dll) containing a bootstrapper implementation like
public class Bootstrapper : UnityBootstrapper

I also have a native C++ dll containing a C++ class MyService with CLR support. The class instantiates a bootstrapper like
using namespace Microsoft:smilieractices::Composite::UnityExtensions;
using namespace Microsoft:smilieractices::Unity;
Bootstrapper^ bootstrapper = gcnew Bootstrapper();

I have already added MyUtility, UnityExtensions and Unity assembly dlls in the native C++ project's References. However, the compiler gives the following error:

"error C2579: unable to resolve type Microsoft.Practices.Composite.UnityExtensions.UnityBootstrapper (0x1000026). It is expected in Microsoft.Practices.Composite.UnityExtensions.dll"

Could anyone point me out the cause and a solution?

Thank you