I have an application which we have to developed for two purpose
- Online - There will be a super admin user you will create companies in the system and these companies can access their system on our application. For example our application is hosted on example.com so admin will login at example.com/admin and he creates a company and assign him a URL example.com/company. Now company users can use their company URL (example.com/company) and start using the system.
- On-Premise - In this option application will be deployed on company's own hardware and only company's part of the application will be available for them. admin (domain.com/admin) section will not be available in On-Premise option.
Is there any way to do both the things in same web project and while publishing project for On-Premise use exclude the admin portion files otherwise complete application will be published.