开发者

Exception when add Silverlight dll in WPF application

When i added the silverlight dll in the wpf application , i got the following exception.

Could not load file or assembly "System.Cor开发者_如何学Goe, Version=2.0.5.0". The located assembly's manifest definition does not match the assembly reference.

This is happening only in VS 2010 professional Beta 2.


You cannot use Silverlight directly in a WPF application, as they do not use the same version of the .NET Framework, thus the error message

Could you give some more details on your scenario ? If you have a WPF app, you have more than what Silverlight can give to you.

If you are building a solution with multiple products, and one is WPF for the desktop, one is Silverlight for the Web, you need to create 2 different projects in VS.


Take a look at the source tree here: http://expressionblend.codeplex.com/

Specifically, the Expression.Samples.Interactivity.Design branch.

This shows a few examples of how to put in property editors for use with Blend. I'm not sure if the same concept is transportable to the Cider design surface, but heck, Blend is nicer for pure XAML editing anyways. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜