c# - 无法安装或运行应用程序 - System.Windows.Interactivity 版本 4.0.0.0

标签 c# wpf devexpress clickonce mvvm-light

我完全被困住了。搜索了又搜索。 我有一个对 System.Windows.Interactivity 版本 4.5.0.0 的引用 当我通过 ClickOnce 释放系统时,系统未安装并报告以下错误。

Unable to install or run the application. The application requires that assembly System.Windows.Interactivity Version 4.0.0.0 be installed in the global assembly cache (GAC) first.

我正在使用 DevExpress 工具和 MVVMLight。如果我尝试添加版本 4.0.0.0,则会收到错误,因为需要 4.5。任何帮助将不胜感激。谢谢斯科特

最佳答案

当您发布应用程序时 - 可能您的输出中包含以下内容: 无法解决“System.Windows.Interactivity,Version=4.5.0.0,....”之间的冲突。

您需要做的是在 app.config 中添加重新映射 就像这里所做的那样What should I change when the compiler tells me to "Consider app.config remapping" when I have no app.config file?

关于c# - 无法安装或运行应用程序 - System.Windows.Interactivity 版本 4.0.0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20406985/

相关文章:

c# - 为什么在调用 ExceptionPolicy.HandleException 时会出现 System.InvalidOperationException?

c# - 最大化系统托盘中的应用程序?

c# - DevExpress - 设置单元格值 - mscorlib.dll 中发生类型为 'System.StackOverflowException' 的未处理异常

c# - 在 C# 中向 CSS 类选择器添加属性

c# - 无法将类型 'System.Data.DataRowView' 的对象强制转换为类型 'System.Data.DataRow'

wpf - 文本框不会拉伸(stretch)以填充 View 框

c# - 使用 C# 获取 Excel 单元格区域中的特定文本

javascript - 处理所有 DevExtreme 输入小部件的更改事件

devexpress - 我如何在 devexpress 的 XtraGrid 列中显示 htmltext

C# MySqlConnection 应用程序因证书信息不正确而崩溃