AMH
AMH

Reputation: 6451

Cannot refrence silverlight 5 class library in normal class library

I created a normal class library , and tried to add a silverlght 5 class library it gave warning it's have the same core

also I cannot find entityframework file (edmx) item to add to silverlight 5 , it's multi projects

Upvotes: 0

Views: 109

Answers (1)

Yaser Moradi
Yaser Moradi

Reputation: 3337

C# is supported in both Silverlight & .NET

But you can not add reference .net assembly to Silverlight project and vice versa

Because they have their own runtimes, with their specifics and abilities.

You can't add reference entity framework dll to Silverlight project, because Silverlight has no System.Data dll.

You can not add reference System.Data.dll to Silverlight project, because it does not support sql server native drivers.

Try using Portable class libraries & WCF or WCF Data service.

Let me know if any other information is needed.

Good luck

Upvotes: 1

Related Questions