类型'System.Windows.VisualStateManager'存在于'c:\ ..(x86)\参考程序集\ Mesrosot \ Framwork \.NETFramework \v4.5 \ PresentationFramework.dll'和'c中:\ ... \dlls\Calendar\WPFToolkit.dll” [英] The type 'System.Windows.VisualStateManager' exists in both 'c:\.. (x86)\Reference Assemblies\Microsot\Framwork\.NETFramework\v4.5\PresentationFramework.dll' and 'c:\...\dlls\Calendar\WPFToolkit.dll'

查看:98
本文介绍了类型'System.Windows.VisualStateManager'存在于'c:\ ..(x86)\参考程序集\ Mesrosot \ Framwork \.NETFramework \v4.5 \ PresentationFramework.dll'和'c中:\ ... \dlls\Calendar\WPFToolkit.dll”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请解决此问题



[固定格式,添加此行以允许发布内容,否则会太短 - SA]

Please Solve This Problem

[Fixed formatting, added this line to allow posting of the content which otherwise would be too short — SA]

推荐答案

你正在使用WPF的4.5框架版本和旧版本的控件(适合3.5 SP1),为什么?

你应该选择你的那个真的想使用并删除另一个 - 这也将删除错误消息...
You are using the 4.5 framework version of WPF and an older version of controls (fit for 3.5 SP1), why?
You should choose the one you really want to use and remove the other - that will also remove the error message...


仍然可以使用解析具有相同全名的不同程序集的顶级类型extern alias

https://msdn.microsoft.com /en-us/library/ms173212.aspx [ ^ ]。



此MSDN帮助页面仅解释了编译器命令行语法,您不直接使用IDE。因此,除了这些信息之外,您还需要知道如何在Visual Studio中执行此操作。方法如下:在Solution Explorer中,选择一个引用的程序集节点(项目的节点References的子节点之一),激活引用的程序集节点的Properties(通过上下文菜单)并添加别名到物业别名。



-SA
The top-level types of different assemblies with identical full names can still be resolved using extern alias:
https://msdn.microsoft.com/en-us/library/ms173212.aspx[^].

This MSDN help page only explains the compiler command-line syntax, which you don't directly use with the IDE. So, in addition to this information, you need to know how to do it in Visual Studio. Here is how: in Solution Explorer, select one of the referenced assembly nodes (one of the children of the node "References" of the project), activate "Properties" of the referenced assembly node (through the context menu) and add an alias to the property "Aliases".

—SA


这篇关于类型'System.Windows.VisualStateManager'存在于'c:\ ..(x86)\参考程序集\ Mesrosot \ Framwork \.NETFramework \v4.5 \ PresentationFramework.dll'和'c中:\ ... \dlls\Calendar\WPFToolkit.dll”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆