全面披露:SharePoint Development Noob。我目前在VS2010中的SP解决方案中构建了3个自定义Web零件。我将项目构建并部署到我们本地的SharePoint开发框。但是,部署后,只有前两个自定义Web零件显示在“插入Web部件”功能区中的自定义类别下。我检查了所有3个WebParts的elements.xml文件,它们都设置为供自定义组下方列出。关于我如何调试的任何想法?任何建设性的建议将受到极大的赞赏。

home elements.xml

<?xml version="1.0" encoding="utf-8"?>
 <Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
  <Module Name="Home" List="113" Url="_catalogs/wp">
    <File Path="Home\Home.webpart" Url="Home.webpart" Type="GhostableInLibrary" >
      <Property Name="Group" Value="Custom" />
    </File>
  </Module>
</Elements>

Idueseditor Elements.xml

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
  <Module Name="IdeaEditor" List="113" Url="_catalogs/wp">
    <File Path="IdeaEditor\IdeaEditor.webpart" Url="IdeaEditor.webpart" Type="GhostableInLibrary" >
      <Property Name="Group" Value="Custom" />
    </File>
  </Module>
</Elements>

IDEAGRID ELEMENTS.xml

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
  <Module Name="IdeaGrid" List="113" Url="_catalogs/wp">
    <File Path="IdeaGrid\IdeaGrid.webpart" Url="IdeaGrid.webpart" Type="GhostableInLibrary" >
      <Property Name="Group" Value="Custom" />
    </File>
  </Module>
</Elements>
有帮助吗?

解决方案 3

我发现了这个问题。我不确定为什么,但是更改解决方案中的功能名称似乎可以解决问题。不过,感谢您的帮助。

其他提示

确保您的.webpart文件没有命名冲突。请用elements.xml文件的内容更新您的问题。您是否使用过几个SPI(SharePoint Project项目)作为Web零件或一个?

您是否检查过包装编辑器,以确保部署解决方案时将所有3个Web零件都打包?

许可以下: CC-BY-SA归因
scroll top