SharePoint 2010 沙盒解决方案以及 Visual Studio 2010 模板

SharePoint 2010中的沙盒解决方案为SharePoint开发提供了很好的支持。我们在不做场部署的情况下,可以使用很多伟大的功能。但是,沙盒解决方案也有它自有的限制,不是所有的项目模板(project templete)或者SharePoint项目项(SharePoint Project Items -- SPI)在沙盒解决方案中都是有效的。

下面罗列了,安装在Visual Studio 2010中的模板,以及是否允许应用到沙盒解决方案中。

工程模板(Project Templete)

          名字                    是否允许应用于沙盒解决方案        
 Empty SharePoint Project   Yes.
 Visual Web Part  No. Visual Web Part使用了客户端控件,必须部署在场加爵方案中。
 Sequential Workflow  No。
 State Machine Workflow  No。
 Business Data Connectivity Model   No。BDC模型是被部署到场级别上的,因此无法部署到沙盒解决方案中。
 Event Receiver  Yes。
 List Definition  Yes。
 Content Type  Yes。
 Module  Yes。
 Site Definition  No。
 Import Reusable Workflow  No。
 Import SharePoint Solution Package   Yes。

 

 

 

 

 

 

 

 

 

SharePoint工程项(Project Items)

 

          名字                    是否允许应用于沙盒解决方案        
Visual Web Part  No. Visual Web Part使用了客户端控件,必须部署在场加爵方案中。
Web Part  Yes。
Sequential Workflow  No。
State Machine Workflow  No。
Workflow Association Form  No。Association Form包含.aspx文件,无法部署到沙盒解决方案中。
Workflow Initiation Form  No。Association Form包含.aspx文件,无法部署到沙盒解决方案中。
Business Data Connectivity Model  No。BDC模型是被部署到场级别上的,因此无法部署到沙盒解决方案中。
Application Page  No。Application Page包含。aspx文件,无法部署到沙盒解决方案中,如果Layout目录为空,则可以部署沙盒解决方案。
Event Receiver  Yes。
Module  Yes。
Content Type  Yes。
List Definition From Content Type   Yes。
List Definition   Yes。
List Instance   Yes。
Empty Element   Yes。
User Control   No。User controls包含。ascx文件,无法部署沙盒解决方案。如果ControlTempletes目录下为空,则可以部署沙盒解决方案。

posted on 2011-12-05 17:32  lining820125  阅读(216)  评论(3)    收藏  举报

导航