从构建后事件命令行构建 wsp
从构建后事件命令行构建 WSP 的命令是什么?
我将再添加一张图像,以便您能够了解我的确切要求。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
从构建后事件命令行构建 WSP 的命令是什么?
我将再添加一张图像,以便您能够了解我的确切要求。
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
您可以使用 MSBuild 构建 WSP。每个 SharePoint 项目都是使用参数构建的
通过将此参数添加到 msbuild 命令,您可以确保创建所有 WSP。
You can build a WSP by using MSBuild. Each SharePoint project is build with the parameter
By adding this parameter to the msbuild command you can ensure that all WSPs will be created.
您将必须依赖外部工具,例如 makecab.exe 或 WSPBuilder。
http://www.developerfusion.com/community/blog-entry/8390127/tfs-teambuild-and-sharepoint-wsp-deployment-and-any-post-build-events-for-that-事情/
http://www.fftf.org/news/Jul07feed/SharePoint_Solution_Deployment_Handy_PostBuild_Events.rss.html
You will have to depend on external tools like makecab.exe or WSPBuilder.
http://www.developerfusion.com/community/blog-entry/8390127/tfs-teambuild-and-sharepoint-wsp-deployment-and-any-post-build-events-for-that-matter/
http://www.fftf.org/news/Jul07feed/SharePoint_Solution_Deployment_Handy_PostBuild_Events.rss.html
我从这里找到了答案 它适用于 SharePoint 2007 和 2010。
调用“C:\Program文件\WSPTools\WSPBuilderExtensions\WSPBuilder.exe" -ProjectPath $(SolutionDir) -OutputPath $(SolutionDir) -SolutionPath $(SolutionDir)
I found the answer from here and it works for both SharePoint 2007 and 2010.
call "C:\Program Files\WSPTools\WSPBuilderExtensions\WSPBuilder.exe" -ProjectPath $(SolutionDir) -OutputPath $(SolutionDir) -SolutionPath $(SolutionDir)
这个好像是VS2010。
如果您选择项目模板为 SharePoint 2010 项目,那么您将在上下文菜单中找到与 SharePoint 相关的项目。如果选择部署,它会自动创建wsp包并将其部署到服务器。
This seems to be VS2010.
If you choose the project template to be a SharePoint 2010 project then you will find items in the context menu that are related to SharePoint. If you choose deploy, it will create the wsp package automatically and deploy it to the server.
要强制 Visual Studio 在构建后为 SharePoint 解决方案创建 wsp,请将这些属性添加到项目 xml 中。如果您已经定义了构建后事件,只需将两个内部标记添加到现有属性组中即可。 Visual Studio 将在配置的位置创建 wsp;发布或调试。
要编辑项目 xml,请在 Visual Studio 中卸载该项目,然后右键单击该项目并选择编辑。
To force Visual Studio to create a wsp on post build for SharePoint solutions, add these properties to the project xml. If you already have a post build event defined, just add the two inner tags to the existing property group. Visual Studio will create the wsp in the configured location; Release or Debug.
To edit the project xml unload the project in visual studio then right-click on the project and select edit.