我使用WSPBuilder从我的Sharepoint项目创建WSP文件。其中一些包含需要部署的特殊文件夹中的文件,如“Layout”。
当我使用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吗?
发布于 2011-11-03 01:02:22
您不应使用旧的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%更多信息:How can I build a SharePoint 2010 package using command line?
https://stackoverflow.com/questions/7982957
复制相似问题