Generating App to Deploy on to SharePoint Online App Catalog

Procedure

  1. Navigate to TIBCO_HOME/bw/palettes/sharepoint/version_number/dotnetsolutions/SPOnline/Core.Eventreceivers/AppManifest.xml
  2. Replace the Client ID in the AppManifest file with the Client ID generated, as described in Registering Addin on the Microsoft Azure ACS
  3. Replace the Hosted-Domain string with the Azure app service domain name inside the <Startpage> tag.
  4. Save the AppManifest file.
  5. Navigate to TIBCO_HOME/bw/palettes/sharepoint/version_number/dotnetsolutions/SPOnline and open BuildSharePointApp.bat.
  6. Delete the first line in the batch file.
  7. In msbuild %cd%\Core.EventReceivers\Core.EventReceivers.csproj, replace %cd% with the complete directory location of SharePoint project file located, for example, \bw\palettes\sharepoint\6.2\dotnetsolutions\SPOnline.
  8. In /p:OutputPath="%cd%\Core.EventReceivers", replace %cd% with any folder directory location where you want the app to be generated.
    Note: If error is displayed when you run the batch file, remove /p:OutputPath="%cd%\Core.EventReceivers and run the batch file again.
  9. Save the bat file.
  10. Run the batch file as Administrator.
  11. A file with extension .app is generated in the output path location.
  12. Navigate to TIBCO_HOME/bw/palettes/sharepoint/version_number/dotnetsolutions/SPOnline/Core.EventReceiversWeb_Package/Core.EventReceiversWeb/Content/C_C/Working/Core.EventReceivers/Core.EventReceiversWeb/obj/Debug/Package/PackageTmp.
  13. Open the Web.Config file and replace the Client ID and Client secret with the generated IDs, as described in Registering Addin on the Microsoft Azure ACS. Save the file.
  14. Use git -A command to add files to your repository.
  15. Use git commit -m <Name of the App to be deployed to Azure portal> to commit the changes to the repository.
  16. Use git push azure master command to push your latest Web.Config file to App Service.