Sign up for an Office 365 Developer Site

Make sure you have access to an Office 365 Developer Site. Here are three ways to get one:

Please refer https://msdn.microsoft.com/en-us/library/office/fp179924.aspx for more details.

Create an app for Outlook 2013 using Visual Studio 2013

  1. Open Visual Studio 2013.
  2. Click on File => New => Project.



  3. Select “App for Office” from the installed templates, enter a name for the app and then click on the Ok button.



  4. Choose mail as the app type as shown below and then click on the “Next” button.



  5. Select the forms where you want the Mail app to appear as shown below. Click on the Finish button.



  6. Click on the Ok button for the following dialog box.





  7. The following projects are created for an app. One project contains the manifest file for the app and the other one contains all the essential files required for the web application.



  8. The Manifest file contains the following information.



  9. MyFirstOfficeApp.xml



  10. Home.html contains the complete HTML that will be rendered as an UI for the app.



  11. Home.js contains all the functions required for an app.


Deploy the app

  1. Hit Ctrl+F5 to deploy the solution.
  2. A pop-up will open, enter the credentials and then click on Connect.



  3. The app will be installed successfully.

Test the app

  1. Navigate to Office 365 developer site. URL: https://portal.office.com/Home
  2. Click on Outlook.
  3. Click on New link.



  4. A new message will be opened, click on the apps link. You will be able to see the new app that we installed as shown below.



  5. Click on the “MyFirstOfficeApp” app. The HTML is rendered as shown below.



  6. Click on each button in the app.


Summary

Thus in this article you have seen how to create an app for Outlook 2013 using Visual Studio 2013.