System.Windows.Controls.Theming.Toolkit

发布于 2024-07-26 21:50:34 字数 622 浏览 4 评论 0原文

我见过一些人设法在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里°也失望 2024-08-02 21:50:34

事实证明这已经不重要了。 当我这样做时,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文