NuGet Office js is different (older) than CDN Office js

血红的双手。 提交于 2019-12-11 14:12:06

问题


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.

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.


回答1:


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




回答2:


I found the github project updated recently for office js, the below link will directly takes to the updated libraby , one can download with your existing one,

"https://github.com/OfficeDev/office-js/tree/release/dist" .



来源:https://stackoverflow.com/questions/57149430/nuget-office-js-is-different-older-than-cdn-office-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!