Visual Studio Deployment Does Not Activate SharePoint Feature

I have a simple SharePoint project with one advanced feature. The function does not contain modules; it simply refers to the SPClaimProviderFeatureReceiver -derived class, which in turn points to the SPClaimProvider -derived class.

When I talk about deploying a project, it successfully adds the assembly to the GAC and successfully creates Feature.xml in the folder in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES and gives this output:

 ------ Build started: Project: xxx, Configuration: Debug Any CPU ------ xxx -> E:\xxx\bin\AnyCPU\Debug\xxx.dll Successfully created package at: E:\xxx\xxx.wsp ------ Deploy started: Project: xxx, Configuration: Debug Any CPU ------ Active Deployment Configuration: Default Run Pre-Deployment Command: Skipping deployment step because a pre-deployment command is not specified. Recycle IIS Application Pool: Skipping application pool recycle because no matching package on the server was found. Retract Solution: Skipping package retraction because no matching package on the server was found. Add Solution: Adding solution 'xxx.wsp'... Deploying solution 'xxx.wsp'... Activate Features: No features in this solution were activated. Run Post-Deployment Command: Skipping deployment step because a post-deployment command is not specified. ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ========== ========== Deploy: 1 succeeded, 0 failed, 0 skipped ========== 

Expanded Feature.xml :

 <?xml version="1.0" encoding="utf-8"?> <Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="xxx" AutoActivateInCentralAdmin="TRUE" Description="xxx" Id="063aae98-029f-4c01-a20e-15b6c8576bc8" ReceiverAssembly="xxx, Version=0.1.0.0, Culture=neutral, PublicKeyToken=6e7f8ba8e1265a7f" ReceiverClass="xxx" Scope="Farm" /> 

I am worried that he says that no functions have been activated. The WSP is found in the centralized solution management solution, but says that it is "not deployed", and this feature does not appear in the "Manage Farm Features" section. When I click "Deploy" in the web interface, it says: "The solution was successfully deployed" (why didn't VS do this?). But after that, the function is still not displayed.

+4
source share
3 answers

In VS explorer, right-click on the project -> select properties -> select the sharepoint tab. Here you have another "Active deployment setup". make sure you select the appropriate configuration from the drop-down list. You can change and view the steps of each configuration.

+1
source

If you find this error when deploying your solutions in a sharepoint environment, make sure your project is not a stand-alone solution.

Click on your project, go to the properties window in Visual Studio and change the value of Sandboxed Solution from true to false. Rebuild your project and deploy it.

0
source

skipping the pre command and post deployment is just a warning because you did not specify any command for these steps. on the VS SharePoint tab (see Rahil answer on how to get there) you have 2 text fields for writing your pre and post commands

-2
source

All Articles