Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Sirs,

I have this issue that is taking me forever to figure out. Whenever I try to add a new WCF RIA Services Class Library to a Silverlight application, VS2012 asks to select the Windows Phone Platform to target for the application even though I selected ".NET Framework 4.5" for the new WCF RIA Services Class Library. This is happening after I worked on a small application for Windows Phone.

How can I get the WCF RIA Services Class Library to target the .NET Framework 4.5?

The process I am following is:

1.- Create a new Silverlight application

2.- Add new project: WCF RIA Services Class Library (.NET Framework 4.5 is selected from the drop down list on top of the Silverlight templates)

3.- The next window shown has as a title "New Windows Phone Application" and it has the message "Select the Windows Phone Platform you want to target for this application" and below the message there is a drop down list with 2 options: "Windows Phone OS 7.1" and "Windows Phone OS 8.0"

Thanks in advance.

Best regards,

Luis Nambiar
Posted

1 solution

Silverlight and .NET use entirely different runtimes and cannot be mixed. A RIA Services (client) library cannot target the proper .NET framework.

That's the whole reason why RIA Services auto-generates classed in a client library in the first place: Because the server-side entities cannot be shared.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900