发布步骤:(发布过程中,不需要重新启动sharepoint)
1,使用visual studio生成webpart解决方案,它包括一组dll、xml等文件
2,将解决方案拷贝到sharepoint site的bin目录下
3,在sharepoint site的 web.config 文件里的<SafeControls>中加入所添加的webpart
<SafeControl Assembly="TestWebParts" Namespace="TestWebParts" TypeName="*" Safe="True" />
4,为webpart增加权限控制,修改sharepoint site的web.config
<securityPolicy>
<trustLevel name="Full" policyFile="internal"/>
......
</siteMap>
<!--
<trust level="WSS_Minimal" originUrl="" />
-->
<trust level="Full" originUrl="" processRequestInApplicationTrust="true" />
<webParts>
5,在sharepoint site中导入webpart
6,在sharepoint site的对应的page中加入webpart