Click here to Skip to main content
15,909,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there a robust and stable technology stack, cantered around Microsoft Technologies, where ideally I could have a single code base and two User interfaces - one for Desktop and the other for the Web.

What I have tried:

Have tried with Electron, but was not happy with the duplication required in UI design.
Posted
Updated 1-Mar-21 9:00am
Comments

 
Share this answer
 
Comments
Archimedes24 30-Apr-21 3:02am    
Thanks RickZeeland....will have a look
Your best bet is to shove as much code as possible into a common assembly, and then write code the two UI's around that. At some point though, you'll run into UI situations that call for the data to be used in a completely different way.

We have an assembly with all of our DAL, BLL, and connection string management (we don't put connection strings in config files 0- we build them on the fly based on the environment the app is running in), as well as common utility methods/classes. We have services, desktop apps (command line and UI), and web apps that consume this assembly.

Then we have a UI-specific assembly for WPF apps, and another for web apps, as well as middle-m,an assemblies that inherit certain classes in the first assembly I described.

BTW, all of our database code is in the form of stored procs in a SQL server database.

Changes become fairly localized and tend not to impact the opposing UI's.

That's the best we could do, but it's still kinda messy.
 
Share this answer
 
Comments
Archimedes24 30-Apr-21 3:02am    
Thanks #realJSOP for the detailed 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