NuGet Office js 与 CDN Office js 不同(旧) [英] NuGet Office js is different (older) than CDN Office js

查看:72
本文介绍了NuGet Office js 与 CDN Office js 不同(旧)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

NuGet 和 CDN 版本不同.它们具有相同的文件版本:/* 版本:16.0.6807.1000 /,但 CDN 在标题中包含/ Update: 2 */,并且代码本身有一些更改.

The NuGet and the CDN versions are different. They have the same file version: /* Version: 16.0.6807.1000 /, but the CDN includes / Update: 2 */ in the header, and there are some changes in the code itself.

使用 NuGet 版本时,我们在 Outlook 桌面中加载 Outlook-win32-16.01.js 文件时收到权限被拒绝".该文件调用 invokeHostMethod ,它本身调用 window.external.Execute ,这就是抛出异常的时候.Office JS 停止加载,加载项不起作用.

Using the NuGet version, we receive "Permission Denied" when loading outlook-win32-16.01.js file in Outlook desktop. The file calls invokeHostMethod which itself calls window.external.Execute and that's when the exception is thrown. Office JS stops loading and the add-in does not work.

推荐答案

是的,在某种程度上是设计的.NuGet 仅在大约 3 周前的主要版本上更新.正如 Brian 所建议的,获得最新最好的正确方法是使用 NPM https://www.npmjs.com/package/@microsoft/office-js

Yes, to some degree by design. NuGet gets updated only on major releases, last one ~3 weeks ago. As suggested by Brian the right way to get the latest and greatest is to use NPM https://www.npmjs.com/package/@microsoft/office-js

这篇关于NuGet Office js 与 CDN Office js 不同(旧)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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