container.Register(
AllTypes.Pick().FromAssembly(typeof (UserRepository).Assembly)
.WithService.FirstInterface());
現在、上記のコードは、インターフェイスも同じアセンブリにある場合は正常に機能しますが、IUserRepository が別のアセンブリにある場合は失敗します。
2 つの異なるアセンブリからの自動登録は可能ですか? ここで何か不足していますか?