Visual Studio deployment nicht aktivieren SharePoint-feature

Habe ich eine einfache SharePoint-Projekt mit einer farm-scoped feature. Die Funktion enthält keine Module; es bezieht sich gerade auf eine SPClaimProviderFeatureReceiver-abgeleitete Klasse, die wiederum auf eine SPClaimProvider-abgeleitete Klasse.

Wenn ich erzähle, das Projekt zu implementieren, macht es, erfolgreich fügen Sie die assembly in den GAC, und nicht erfolgreich erstellen Feature.xml innerhalb eines Ordners in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES, und gibt in dieser Ausgabe:

------ 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 ==========

Den bereitgestellten 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" />

Bin ich besorgt, dass es sagt, dass keine der Funktionen aktiviert wurden. Die WSP zeigen, nicht in der Zentraladministration, Solution-Management, aber sagt, dass es "nicht bereitgestellt", und das Merkmal nicht zeigen, bis in farmfeatures Verwalten. Wenn ich auf die Bereitstellung im web-interface, es heißt "Die Lösung wurde erfolgreich im Einsatz" (Warum nicht VS zu tun??). Aber nach, dass die Funktion noch nicht zeigen, bis.

InformationsquelleAutor Reinderien | 2012-12-04

Schreibe einen Kommentar