Targeting both .NET 3.5 and Silverlight

前端 未结 5 1201
感情败类
感情败类 2021-02-04 09:35

Let\'s imagine I already have a project building .NET 3.5 assembly. Now I want to build this assembly for Silverlight, and moreover, maintain its Silverlight version with minima

5条回答
  •  梦谈多话
    2021-02-04 10:13

    I think what you need to do is tier this out properly. Your Silverlight code should be only for the UI and the communication with backend WCF services. Those services would run your .NET 3.5 code (the code that you want to share). That way you have sharing and n-tier as well.

    If you're doing heavy calculation on the client-side in your Silverlight code and then submitting that to the server (and probably the db) then I think you're opening up a security hole.

    You haven't given a compelling reason why a separate project would need to access code in the Silverlight project.

提交回复
热议问题