簡體   English   中英

WSPBuilder沒有正確地將所有文件添加到manifest.xml

[英]WSPBuilder doesn't add all Files to manifest.xml correctly

我使用WSPBuilder從我的Sharepoint項目創建WSP文件。 其中一些包含需要部署的特殊文件夾中的文件,如“布局”。

當我使用VS2010使用“deploy”命令創建wsp-File時,wsp包含一個manifest.xml,如下所示:

<?xml version="1.0" encoding="utf-8"?>
<Solution xmlns="http://schemas.microsoft.com/sharepoint/" SolutionId="2d5da9c1-0fe4-4ff8-9f4d-c025cf9bc2c1" SharePointProductVersion="14.0">
  <Assemblies>
    <Assembly Location="Tools.dll" DeploymentTarget="GlobalAssemblyCache" />
  </Assemblies>
  <TemplateFiles>
    <TemplateFile Location="Layouts\GetThumbnail.aspx" />
  </TemplateFiles>
</Solution>

但是當我使用WSPBuilder時, <TemplateFiles>部分完全缺失。 這就是我調用WSPBuilder的方式:

WspBuilder. tools.csprog -buildSafeControls false

知道如何將這些模板文件放入帶有WSPBuilder的manifest.xml中嗎?

您不應使用舊的WSPBuilder工具來構建SharePoint 2010包。 如果需要自動執行該過程,請使用Visual Studio或MSBuild:

set msbuild="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
set config=Debug
set outdir="C:\out\"
%msbuild% /p:Configuration=%config% /m ../My.SharePoint.Project/My.SharePoint.Projectcsproj /t:Package /p:BasePackagePath=%outdir%

更多信息: 如何使用命令行構建SharePoint 2010包?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM