将自定义代码远程部署到 Sharepoint 2010?
我在为 Sharepoint 2010 创建自定义内容方面相对较新,并且在理解如何将非设计相关组件(即 Web 部件、自定义类等)添加到 Sharepoint 站点中时遇到了一些困难。我在公司的开发服务器上创建了一个新的可视化 Web 部件,并从 Visual Studio 2010 成功部署了它,并将解决方案打包到 WSP 文件中。
将该 Web 部件放到生产服务器上的最佳方法是什么?目前生产服务器上没有安装 Visual Studio,但通过搜索,我感觉可以使用 Powershell 或 STSADM 远程执行此操作。有人遇到过类似的情况吗?
I'm relatively new at creating custom content for Sharepoint 2010 and have been having some difficulty understanding how to get non-design related components (ie. web parts, custom classes, ...) into a Sharepoint site. I have created a new visual web part on the company's development server and deployed it successfully from Visual Studio 2010 and also packaged the solution into a WSP file.
What is the best way to go about getting that web part onto the production server? There is currently no Visual Studio install on the production server but from searching around I get the feeling that it might be possible to do this remotely using Powershell or STSADM. Has anyone faced a similar situation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 PowerShell。 Stsadm 被认为已过时,包含在 SharePoint 2010 中只是为了向后兼容 SharePoint 2007。因此,由于您是 SharePoint 新手,请假装 Stsadm 根本不存在。
我的 PowerShell 脚本不断发展,但它们基于 Ted Pattison 的示例:
Use PowerShell. Stsadm is considered to be obsolete and is included in SharePoint 2010 only for backwards compatibility with SharePoint 2007. So, since you are new to SharePoint, pretend Stsadm doesn't even exist.
My PowerShell scripts keep evolving, but they are based on samples from Ted Pattison: