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.
source share