我正在尝试使用WSPBuilder构建沙盒共享点解决方案,但在激活该功能时会出现异常,即manifest.xml中的Resources
元素无效。 Resources元素列出模块中包含的文件,该模块是功能的一部分。该解决方案不包含任何非沙盘功能,因为可以激活在没有WSPBuilder的情况下创建的相同解决方案。
有没有人试图这样做,并使其有效?
这是wspbuilder创建的manifest.xml(略有匿名):
<?xml version="1.0"?>
<!-- Solution created by WSPBuilder. 06.01.2011 15:02:38 * Solution compatibility: SharePoint 2010 -->
<Solution SolutionId="2235f481-04a4-4e9c-8c04-ed71c0b68cdf" Title="Branding Sandboxed" xmlns="http://schemas.microsoft.com/sharepoint/">
<Assemblies>
<Assembly Location="BrandingSolution.dll" DeploymentTarget="GlobalAssemblyCache" />
</Assemblies>
<FeatureManifests>
<FeatureManifest Location="Branding\feature.xml" />
</FeatureManifests>
<Resources>
<Resource Location="Branding\abc.master" />
<Resource Location="Branding\abcscript.js" />
<Resource Location="Branding\abcstyle.css" />
<Resource Location="Branding\bg_resourceregion.gif" />
<Resource Location="Branding\favicon.ico" />
<Resource Location="Branding\jquery-1.4.2.min.js" />
</Resources>
</Solution>
VS创建的manifest.xml如下(使用VS工具创建的功能相同):
<?xml version="1.0" encoding="utf-8"?>
<Solution xmlns="http://schemas.microsoft.com/sharepoint/" SolutionId="50e67e9e-2e3f-4034-8a0d-5aa7ce8dc89e" SharePointProductVersion="14.0">
<Assemblies>
<Assembly Location="SandboxedBranding.dll" DeploymentTarget="GlobalAssemblyCache" />
</Assemblies>
<FeatureManifests>
<FeatureManifest Location="SandboxedBranding_Branding\Feature.xml" />
</FeatureManifests>
</Solution>