Your problem is caused by the Caliburn.Micro.Autofac package. He claims that this requires Autofac (>= 2.6.1.841) , so Nuget will download the latest version that satisfies this decency, which is currently Autofac (2.6.3.862) . But the Caliburn.Micro.Autofac build is built compared to Autofac version 2.6.1.841, so it wonβt find the Autofac DLL it needs and will not complete the build with this cryptic exception.
To solve this problem: uninstall all packages associated with Autofac and Caliburn and install them as follows:
PM> Install-Package Caliburn.Micro Successfully installed 'Caliburn.Micro 1.3.1'. PM> Install-Package Autofac -Version 2.6.1.841 Successfully installed 'Autofac 2.6.1.841'. PM> Install-Package Caliburn.Micro.Autofac -IgnoreDependencies Successfully installed 'Caliburn.Micro.Autofac 1.4.1'.
As I understand it: I created a project for reprograms and installed the Caliburn.Micro.Autofac package, copied your code, and I saw an error message. Then I removed the bootstrapper initialization for app.xaml and added the line var bootstrapper = new Bootstrapper(); in the App constructor in the code behind. Then I turned on the frame on all exceptions in VS and I have a TargetInvocationException in the new Bootstrapper() with an internal exception: the Autofac DLL version failed to load ....
source share