문제

SP 2013에서 "BDR # 0"을 기반으로 사용자 정의 웹 템플릿을 개발했습니다. 완벽한 작동 및 사이트 범위 기능을 사용하여 배포 할 수 있습니다.웹 템플릿은 아래와 같이 element.xml 및 onet.xml 파일을 포함하는 VS 2012에 모듈을 추가하여 개발되었습니다.

여기에 이미지 설명

팜 범위에 웹 템플릿을 배포하려고하지만 팜 범위 기능을 사용하여 배포 할 때 다음 오류가 발생합니다.

프로젝트 항목 "DCWEBTEMPLATE"는 팜 범위가있는 기능을 통해 배포 할 수 없습니다. 뭐가 문제 야 ?

도움이 되었습니까?

해결책

This happens because your DCWebTemplate is a module.

You can't use a module to deploy to farm. If you check your spi-file you can see the attribute SupportedDeploymentScopes is only web and site.

<ProjectItem Type="Microsoft.VisualStudio.SharePoint.Module" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">

Instead you should use a Empty Element item. Below is the spi for that type.

<ProjectItem Type="Microsoft.VisualStudio.SharePoint.GenericElement" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site, WebApplication, Farm, Package" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">

다른 팁

WebTemplate isn't allowed in Farm scoped features. See Elements by Scope even though it's for SP2010 it can be used as a guideline for SP2013.

The best you can do is WebApplications scope

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top