我有现有的代码:从卡利科技更新1.4〜1.5 - > IoC.Get <>不与懒惰的工作<>是编译和运行良好与卡利微型1.4了
private static readonly Lazy<IShell> shellLazy = new Lazy<IShell>(IoC.Get<IShell>, true);
我删除了1.4版本和安装通过NuGet的1.5版本,并没有改变任何东西这一行现在抛出一个错误:
错误1'System.Lazy.Lazy(System.Func,System.Threading.LazyThreadSafetyMode)'的最佳重载方法匹配一些无效参数C:\ Users \ User \ Documents \ Visual Studio 2012 \ Projects \ Arnova \ Src \ CShellCore \ Shell.cs 35 58 CShellCore
我已经找到摆脱这种错误的唯一方法是在所有避免使用懒惰<>:
private static readonly IShell shellLazy = IoC.Get<IShell>();
...我已经寻找相关IoC.Get <>和懒惰<>,什么东西可能已经从版本1.4更改为1.5,并且无法找到任何解释Caliburn Micro在这些版本之间发生了哪些变化以及如何解决此问题的内容。
版本v4.0.30319 – Darren