如何在本地开发Sharepoint在线应用程序 [英] How to develope Sharepoint Online App locally

查看:61
本文介绍了如何在本地开发Sharepoint在线应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


一般来说,你只需要在Visual Studio命中F5中创建新的sharepoint Online应用程序然后去。这不适用于我的应用,因为我的应用需要租户权限,因此我必须手动将其部署到workarond"您的租户管理员有
来批准此应用"错误。此外,我的应用程序已安装自定义应用程序事件处理程序。


我知道如何将我的应用程序上传到sharepoint应用程序目录,注册,信任并安装,如果我将我的应用程序部署到Azure。在安装应用程序期间,Sharepoint将在azure上调用我的应用程序。但是在azure上开发app确实很困难,尤其是调试很慢。
所以我想以某种方式重新配置app / sharepoint,以便能够使用IIS Express在本地开发和运行应用程序。 


我正在关注这篇文章:  https ://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/development-experience-tenant-apponly-permissions-in-sharepoint-online但它对我不起作用。我的'app installed'事件处理程序没有被调用。


有可能吗?


解决方案

您好,


要在线调试SharePoint,我们应该通过Microsoft Azure Service Bus启用调试。


更多信息供您参考。


https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/debug-and-troubleshoot -a-remote-event-receiver-in-a sharepoint-add-in


祝你好运,


Lee Liu


Hi,

In general to do that you just need to create new sharepoint Online app in Visual studio hit F5 and go. This is not true for my app because my app requires tenant permissions so I have to deploy it manually to workarond "Your tenant administrator has to approve this app" error. In addition my app has custom app installed event handler.

I know how to upload my app to sharepoint app catalog, register, trust it and install if I deploy my app to Azure. During app installation Sharepoint will call my app on azure. But developing app on azure is really difficult especially debugging is slow. So I would like to somehow reconfigure app/sharepoint to be able to develop and run the app locally using IIS Express. 

I was following this article: https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/development-experience-tenant-apponly-permissions-in-sharepoint-online but it doesnt work to me. My 'app installed' event handler is not called.

Is it possible?

解决方案

Hi,

To debug SharePoint online, we should enable debugging via Microsoft Azure Service Bus.

More information for your reference.

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/debug-and-troubleshoot-a-remote-event-receiver-in-a-sharepoint-add-in

Best regards,

Lee Liu


这篇关于如何在本地开发Sharepoint在线应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆