Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# MVVM轻问题_C#_.net_Wpf_Mvvm - Fatal编程技术网

C# MVVM轻问题

C# MVVM轻问题,c#,.net,wpf,mvvm,C#,.net,Wpf,Mvvm,我在项目中引用了GalaSoft.MvvmLight.Extras.WPF4和GalaSoft.MvvmLight.WPF4,但是如果我声明以下名称空间(该名称空间未出现在下拉列表中-也没有) 我得到以下错误 错误1无法加载程序集“GalaSoft.MvvmLight.Extras.WPF4”的元数据。此程序集可能已从web下载。看见加载过程中遇到以下错误:无法加载文件或程序集“GalaSoft.MvvmLight.Extras.WPF4,版本=3.0.0.30137,区域性=中性,Public

我在项目中引用了GalaSoft.MvvmLight.Extras.WPF4和GalaSoft.MvvmLight.WPF4,但是如果我声明以下名称空间(该名称空间未出现在下拉列表中-也没有)

我得到以下错误


错误1无法加载程序集“GalaSoft.MvvmLight.Extras.WPF4”的元数据。此程序集可能已从web下载。看见加载过程中遇到以下错误:无法加载文件或程序集“GalaSoft.MvvmLight.Extras.WPF4,版本=3.0.0.30137,区域性=中性,PublicKeyToken=e80d33351f9dc0a2”或其依赖项之一。系统找不到指定的文件

您从web下载了DLL,因此它被标记为(通过NTFS备用数据流)。在这种情况下,系统会自动阻止可执行文件和其他二进制文件


您需要解锁该文件。假设您是从合法来源获得的(我假设不是),只需右键单击DLL,然后单击表单底部的“取消阻止”按钮。

它们来自合法来源,但是,它们确实需要解锁
 xmlns:Command="clr-namespace:GalaSoft.MvvmLight.Command; assembly=GalaSoft.MvvmLight.Extras.WPF4"