如何部署SharePoint wsp build server

intersun 2016-03-12 05:37:45
目前我公司有如下需求:
需要搭建一台Build Server, 运行Jenkins,从Git获取源代码到该机器,编译wsp,然后将编译好的wsp文件copy到已经装有SharePoint的Server上,部署。这样实现SharePoint项目的开发、编译、单元测试、部署完全自动化,全部流程由Jenkins来控制完成。
现在就是这台Build Server,有无可能在不安装SharePoint Foundation和Server、以及Visual Studio的情况下,完成build wsp文件的工作?
...全文
1064 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
段传涛 2016-03-20
  • 打赏
  • 举报
回复
表示 没有在SharePoint 里用过, 是我们落伍了吗? 参加 http://www.cnblogs.com/shanyou/p/3452938.html
霖雨 版主 2016-03-16
  • 打赏
  • 举报
回复
SharePoint wsp打包可以用MakeCAB命令,07的时候就是这么做,不过感觉操作起来不是很方便。。有兴趣可以试试。。
Justin-Liu 2016-03-15
  • 打赏
  • 举报
回复
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Build.Tasks.dll 看看这个有没有 如果有的话可能是权限不够,用管理员权限执行命令
intersun 2016-03-15
  • 打赏
  • 举报
回复
引用 1 楼 FoxDave 的回复:
没研究过呢,参考WSPBuilder看看
感谢回复,另一相关问题:为什么在一台已经部署好SharePoint Server 2013和Visual Studio 2013 的Server上, 已有wsp项目源代码,用VS打开并Build完全没问题,但是用MSBuild在命令行里执行:msbuild <ProjectName>.csproj,却会报很多路径错误呢? 比如: Build FAILED. "C:\Workspace\sharepoint-2013-connector\Silanis.ESL\Silanis.ESL.UI\Silanis.ESL. UI.csproj" (Package target) (1) -> (CleanXsdCodeGen target) -> C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.ServiceModel.target s(159,5): error MSB4062: The "Microsoft.Build.Tasks.Delete" task could not be l oaded from the assembly C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microso ft.Build.Tasks.dll. Could not load file or assembly 'file:///C:\Windows\Microso ft.NET\Framework64\v4.0.30319\Microsoft.Build.Tasks.dll' or one of its dependen cies. The system cannot find the file specified. Confirm that the <UsingTask> d eclaration is correct, that the assembly and all its dependencies are available , and that the task contains a public class that implements Microsoft.Build.Fra mework.ITask. [C:\Workspace\sharepoint-2013-connector\Silanis.ESL\Silanis.ESL.U I\Silanis.ESL.UI.csproj] 0 Warning(s) 1 Error(s)
Justin-Liu 2016-03-14
  • 打赏
  • 举报
回复
没研究过呢,参考WSPBuilder看看

3,242

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 SharePoint
社区管理员
  • SharePoint社区
  • 霖雨
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧