我按照https://blogs.msdn.microsoft.com/wilsonreddygajarla/2014/12/13/sharepoint-list-newform-customization-in-sharepoint-hosted-app/中的指示创建了一个带有自定义列表表单的SharePoint Hosted加载项

全部,效果很好,直到您想要通过更改自定义表单来升级加载项 . 我尝试了以下方法:

  • 使用ReplaceContent = True在list element.xml中创建了一个模块条目,该条目成功部署但不替换具有新更改的表单 .
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="CustomList">
<File Url="NewItem.aspx" Path="CustomList/NewItem.aspx" ReplaceContent="TRUE" />
</Module>
<!-- Do not change the value of the Name attribute below. If it does not match the folder name of the List project item, an error will occur when the project is run. -->
<ListTemplate ...`
  • 尝试从Pages模块引用自定义表单页面,但Schema.xml中的Path以某种方式继续在List Definition文件夹中查找自定义表单 .