System.Windows.Controls.Theming.Toolkit
我见过一些人设法在 Windows WPF 应用程序中使用 Silverlight 2.0 Toolkit 中的主题。 事实上,看起来这对他们来说很容易。 我在尝试的早期就遇到了一个奇怪的问题。
以下是失败所需的一切:
- 在 VS2008 sp1 中创建一个新的 WPF 应用程序项目
- 添加对 System.Windows.Controls.Theming.Toolkit 的引用
- 重新构建所有
System.Windows.Controls.Theming.Toolkit 加载自: C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Toolkit\March 2009\Libraries
我收到以下错误: c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.WinFX.targets(294,9):错误 MC1000:未知生成错误,“找到的程序集的清单定义与程序集引用不匹配”。 (HRESULT 的异常:0x80131040)'
我理解该错误的一般含义,但我不知道该怎么办,因为它没有指定它想要的版本,并且必须从新添加的程序集 I 中引用它不知道如何改变。
I've seen some people that have managed to use the themes in the Silverlight 2.0 Toolkit in Windows WPF applications. In fact, it looks like it's pretty easy...for them. I've run into an odd issue early on in my attempts.
Here is all it take to fail:
- Create a new WPF Application project in VS2008 sp1
- Add a reference to System.Windows.Controls.Theming.Toolkit
- Rebuild all
System.Windows.Controls.Theming.Toolkit is loaded from:
C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Toolkit\March 2009\Libraries
I get the following error:
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.WinFX.targets(294,9): error MC1000: Unknown build error, 'The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'
I understand the general meaning of the error, but I don't know what to do about it since it doesn't specify the version it wants and since it must be referenced from the newly added Assembly I don't know how to change that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明这已经不重要了。 当我这样做时,WPF 工具包不包含 Microsoft 的主题。 现在确实如此,并且使用它们可以解决问题。
Turns out this doesn't matter anymore. When I was doing this the WPF Toolkit didn't include Microsoft's themes. Now it does, and using those solves the problem.