开发者

Exception when add Silverlight dll in WPF application

开发者 https://www.devze.com 2022-12-21 16:16 出处:网络
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 manif

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

精彩评论

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

关注公众号