1

我正在尝试使用 WSPBuilder 构建沙盒共享点解决方案,但在激活该功能时出现异常,即Resourcesmanifest.xml 中的元素无效。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>
4

0 回答 0