English 中文(简体)
启动分享点 部署解决办法时的特点
原标题:Activate Sharepoint Feature when Solution is deployed

I want to automatically activate a feature (specifically the SharePoint Server Publishing feature) automatically when I deploy a new wsp solution. Is this possible.

Where and How do I do this inside the visual studio Sharepoint project?

最佳回答

Hi Luis Please check this solution how to activate feature programmatically

问题回答

看一看VS的特征——这里有几种选择,可以控制在通过VS(只有)部署解决办法时特征如何。

  1. Activate On Default - Indicates whether the feature is activated during installation
  2. Always force Install - Indicates whether the feature is installed by force, even though it is already installed.
  3. Auto Activate in Central Admin - Indicates that the feature is activated for administrators in CA...




相关问题
Sharepoint 2010 register control as safe through wsp

I created a "Hello World" Sharepoint 2010 solution using VS2010. It contains just a feature, and a webpart containing a label. I registered the webpart as a safe control in the "Properties" window of ...

Version SharePoint WSP

Has any one tried to version WSP in SharePoint 2010? Thanks,

How exactly does a WSP deploy a dll internally

i am facing a problem with deploying dlls with a WSP. After deploying the first version of the dll using a WSP, if I want to change the dll and redeploy after retracting, it is still referring to the ...

Deploying a content type and site columns with a WSP in MOSS

I m looking for a clean, and repeatable, solution to deploying custom site columns and content types to MOSS using a WSP. I ve currently split up my product into two Visual Studio solutions. The ...

热门标签