I am using Caliburn.Micro bootstrapper here:
https://gist.github.com/1127914
Everything works if I save all views and view modes in the same project as bootstratpper.
But I wanted to click the Views and ViewModels folder on another assembly / project, I do, change namespaces, update the bootloader to find this viewmodel model. Now when I run, I get an error
"No component to support the MVVMBook.ViewModules.ViewModels.MainViewModel service was found."
in this part of the bootloader:
return string.IsNullOrWhiteSpace(key)
? _container.Resolve(service)
: _container.Resolve(key, service);
Obviously, it cannot mount the ViewModel, although the VM is set as a general parameter in Bootstrapper:
public class CastleBootstrapper : Bootstrapper<MainViewModel>
, , "" "" "ViewModels", - MainView.xaml MainViewModel.cs
, ?
, , view viewmodels , :
protected override IEnumerable<Assembly> SelectAssemblies()
{
return new[]
{
Assembly.GetExecutingAssembly()
};
}