하나의 팜 범위 기능이있는 간단한 SharePoint 프로젝트가 있습니다. 이 기능에는 모듈이 없습니다. 그것은 단지 SPClaimProviderFeatureReceiver
-derived 클래스를 가리키며, 차례로 SPClaimProvider
- 유도 클래스를 가리 킵니다. 내가 배포 프로젝트를 말할 때Visual Studio 배포에서 SharePoint 기능을 활성화하지 않습니다.
, 그것은 성공적으로 GAC에 어셈블리를 추가 않으며, 성공적으로 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES
에서 폴더 내에있는 Feature.xml를 만들 않으며,이 출력 제공 :
------ 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 ==========
가 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" />
나는 활성화 된 기능이 없다고 말합니다. WSP는 중앙 관리 솔루션 관리에 나타나지만 "배포되지 않았습니다"라고 표시되며 기능은 팜 기능 관리에 표시되지 않습니다. 웹 인터페이스에서 Deploy (배포)를 클릭하면 "솔루션이 성공적으로 배포되었습니다"라고 표시됩니다 (VS가이 작업을 수행하지 않은 이유는 무엇입니까?). 그러나 그 후에도이 기능은 여전히 나타나지 않습니다.
활성 배포 구성이 "기본값"으로 설정됩니다. 배포 전 단계는 "사전 배포 명령 실행", "IIS 응용 프로그램 풀 재활용", "솔루션 철회", "솔루션 추가", "기능 활성화"및 "배포 후 명령 실행"입니다. 그러나 분명히 "기능 활성화"단계가 올바르게 작동하지 않습니다. – Reinderien
해결할 기회가 있었습니까? 동일한 문제가 발생했습니다 ... – XpiritO
@ Reinderien과 동일한 문제 - 어떤 이유로 든 기능을 활성화하지 않습니다. 타이머 작업을 사용하고 있으므로 [다음] (http://www.codeproject.com/Tips/634208/Create-and-Deploy-Custom-Timer-Job-Definition-in-S) 문서를 따랐습니다. 'Activate on Default'를'False'로 설정 한 다음 웹 애플리케이션에 대해 수동으로 활성화하십시오. (그다지 확실하지 않은 이유). – PeterX