How to: Host a LightSwitch HTML Client Application on Sharepoint
By using LightSwitch, you can create SharePoint apps that are hosted in the SharePoint Store or in your organization's private app catalog. By enabling SharePoint debugging, you can also host your app on SharePoint to test it during development.
To enable SharePoint debugging
Create an application by using either the LightSwitch HTML Application (Visual Basic) or LightSwitch HTML Application (Visual C#) template.
In Solution Explorer, choose the Application project node, where Application is the name of your application.
On the menu bar, choose Project, Enable SharePoint.
The Enabling SharePoint wizard opens.
In the What SharePoint site do you want to use for debugging your App? text box, enter the URL for your SharePoint site, and then choose the Finish button.
If you’re prompted for credentials, enter your SharePoint credentials.
When you run the application, it will now be hosted on SharePoint instead of in your browser.
To publish a SharePoint app
On the menu bar. choose Build, Publish.
The LightSwitch Publish Application Wizard opens.
On the SharePoint Options page, choose the Autohost option button.
On the Data Connections page, verify the connection strings for all data sources and update if necessary.
Choose the Finish button.
When publishing finishes, File Explorer opens to the location of the publishing output. You can now upload the app to your SharePoint site.