无法加载文件或程序集'WPG,PublicKeyToken = null'或其依赖项之一 - c#

我正在使用PRISM和在CodePlex中找到的新控件:WPF属性网格

http://wpg.codeplex.com/

当我测试DEMO时,一切进展顺利。

我尚未开始使用PRISM。如果我将控件放在Shell中,效果也很好。问题是,如果我将控件放在模块中,则会引发错误。

无法加载文件或程序集'WPG,PublicKeyToken = null'或以下之一
它的依赖关系。该系统找不到指定的文件。

我真的不知道该错误。有谁知道如何解决它?

编辑:

<UserControl x:Class="ConfigurationManagerModule.Views.ConfigurationView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:prism="http://www.codeplex.com/prism"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:wpg="clr-namespace:WPG;assembly=WPG"
    >

而且此用户控件是模块的一部分

参考方案

确保您的引用设置正确。当Project B在XAML中使用程序集(如WPG)时,会出现此问题,但Project A实际上创建了Project B类的实例。要使XAML解析器以这种方式工作,必须将WPG引用添加到项目A。在项目A中仅引用项目B是不够的。

将字符串分配给numpy.zeros数组[重复] - python

This question already has answers here: Weird behaviour initializing a numpy array of string data                                                                    (4个答案)         …

TypeError:'str'对象不支持项目分配,带有json文件的python - python

以下是我的代码import json with open('johns.json', 'r') as q: l = q.read() data = json.loads(l) data['john'] = '{}' data['john']['use…

R'relaimpo'软件包的Python端口 - python

我需要计算Lindeman-Merenda-Gold(LMG)分数,以进行回归分析。我发现R语言的relaimpo包下有该文件。不幸的是,我对R没有任何经验。我检查了互联网,但找不到。这个程序包有python端口吗?如果不存在,是否可以通过python使用该包? python参考方案 最近,我遇到了pingouin库。

如何用'-'解析字符串到节点js本地脚本? - python

我正在使用本地节点js脚本来处理字符串。我陷入了将'-'字符串解析为本地节点js脚本的问题。render.js:#! /usr/bin/env -S node -r esm let argv = require('yargs') .usage('$0 [string]') .argv; console.log(argv…

如果我得到url(''),我该如何使用另一个URL - javascript

我是新手,正在写这篇文章,但是如果源上没有图像,那么我只有空白。有人可以告诉我,如果我正在获取背景图像,如何获取/images/no-image.jpg:url();这是我的代码:<div class="uk-clearfix uk-position-relative"> <div class="recipeb…