views:

38

answers:

1

I was thinking of writing a client application in ASP.NET MVC first to make it available over the net to everyone.

In the near future I'd like to port it to Windows Phone 7 using Silverlight. How much of the code can I re-use from ASP.NET? Would I have to completely rewrite it?

Thanks in advance!

+1  A: 

You'll need to ensure that you abstract all of the domain model away from the UI itself (separate assembly). The UI (WebForms, MVC, Silverlight, WPF..whatever) can then utilise this assembly to access the domain. It is likely that little to no code from the UI will be reusable.

David Neale