在我的 PC 上使用 MVVM-light 构建 silverlight 项目时出现问题。在其他计算机上它构建

发布于 2024-09-14 12:44:39 字数 932 浏览 0 评论 0原文

我在一个 silverlight 项目团队中工作。这个 silverlight 项目使用 MVVM-light。当我想要构建项目时,出现以下两个错误:

错误 1 ​​:
“EventTrigger”类型不支持直接内容。
我在此 xaml 代码上收到此错误:


我在 GalaSoft_MvvmLight_Command 标签上收到此错误。

错误 2:
XML 命名空间“clr-namespace:System.Windows.Interactivity; assembly=System.Windows.Interactivity”中的类型“EventTrigger”上不存在属性“_UnknownContent”。
对于此错误,我没有特定的行号和列号。



但奇怪的是,我的同事却没有这个问题。即使他们从源代码控制中获取最新版本。然而我有这些错误。我已经尝试删除完整的解决方案并从 Sourcesafe 取回它,但我不断收到这些错误。
如有任何帮助,我们将不胜感激。

谢谢,
米歇尔

I work in a team on a silverlight project. This silverlight project uses MVVM-light. When I want to build the project I get the following two errors:

Error 1 :
The type 'EventTrigger' does not support direct content.
I get this error on this xaml code:

<HyperlinkButton x:Name="HyperlinkButtonSelectAll" Content="Select all" IsTabStop="False" Height="20" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding SelectAllPluginsCommand, Mode=OneWay}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</HyperlinkButton>

I get this error on the GalaSoft_MvvmLight_Command tag.

Error 2 :
The property '_UnknownContent' does not exist on the type 'EventTrigger' in the XML namespace 'clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity'.

For this error I do not have specific line and columnnumbers.

The strange thing however is that my colleagues don't have this issue. Even if they take the latest version from source control. I however have these errors. I already tried to delete the complete solution and get it back from sourcesafe, but I keep getting these errors.

Any help would be appreciated.

Thanks,
Michiel

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

沉默的熊 2024-09-21 12:44:39

检查您是否安装了与 Visual Studio 或 Blend 不同版本的 Silverlight Tools。这里的关键是您引用的 System.Windows.Interactivity 程序集的版本。如果您发现您的计算机上的该程序集版本与您的同事不同,我建议您在源代码管理中存储该程序集的工作版本,并从项目中引用该版本。

Check whether you have a different version of Silverlight Tools for Visual Studio or Blend installed than they do. The key here is what version of the System.Windows.Interactivity assembly you have referenced. If you find that you have a different version of that assembly on your machine than your co-workers, I suggest you store a working version of that assembly in source control and reference that one from the project.

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