把旧的引用:
using Microsoft.Practices.ServiceLocation;
替换为:
using CommonServiceLocator;


如果还是报错

检查下nuget安装包是否安装了MVVMLight

本文档指导如何将Microsoft.Practices.ServiceLocation更新为CommonServiceLocator,解决MVVM Light框架使用中遇到的引用错误问题。
把旧的引用:
using Microsoft.Practices.ServiceLocation;
替换为:
using CommonServiceLocator;


如果还是报错

检查下nuget安装包是否安装了MVVMLight


被折叠的 条评论
为什么被折叠?