How to Deploy Apps Remotely to the Office 365 Preview

As a developer, one must be aware of the limitations in SharePoint 2010 when developing and deploying SharePoint solutions, namely, the requirement that Visual Studio and SharePoint coexist on the same box. Luckily, with app development for the Office365 Preview (and SharePoint 2013 Preview), developer tools such as Visual Studio are no longer required to be on the same box as the SharePoint server. In this post, we will demonstrate the ways to remotely deploy apps to the Office 365 Preview and SharePoint 2013 Preview using the tools listed below:

  • Visual Studio 2012 RC Preview
  • “Napa” Office 365 Development Tools

 

Using Visual Studio 2012 RC Preview

  1. Prepare your environment to create an app for the SharePoint 2013 Preview.
  2. If it does not already exist, create a new Site Collection using the Developer Site template:
  3. During the “Create New App for SharePoint” process, enter your developer site URL (as mentioned above) to “What SharePoint site do you want to use for debugging your App?” Keep the default setting Autohosted for “How do you want to host your app for SharePoint?”

    Note: If you have already created a project for an app, just select Properties and enter your developer site URL to “Site URL”:

  4. Develop your app and, once completed, hit F5 to begin deployment.
  5. You will be presented with a login screen to authenticate to your Office365 site. Enter User ID and Password:

    Look at the status bar of Visual Studio to see the background process of the deployment: App is installing for SharePoint…

    Deployment successful!

  6. Trust the app in your Office 365 site to make it available:

 

Using “Napa” Office 365 Development tools

  1. Add “Napa” Office 365 Development Tools from the SharePoint Store to your developer site.
  2. Click on Napa on the Site Contents page:
  3. Add New Project:
  4. Various apps will be available for your choosing.  Select App for SharePoint. Give the app a name and click “Create”:
  5. Within the Napa window, develop your new app:
  6. Click Run Project to deploy your app to your Office 365 Preview:

    Your project is being packaged and installed on your SharePoint Server:

    Deployment success!

    Note: You can also open this project in Visual Studio 2012 Preview, edit properties, or remove the app using the following available buttons:


See Also: