将自定义代码远程部署到 Sharepoint 2010?

发布于 2024-09-28 00:55:22 字数 291 浏览 0 评论 0原文

我在为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寻找一个思念的角度 2024-10-05 00:55:22

使用 PowerShell。 Stsadm 被认为已过时,包含在 SharePoint 2010 中只是为了向后兼容 SharePoint 2007。因此,由于您是 SharePoint 新手,请假装 Stsadm 根本不存在。

我的 PowerShell 脚本不断发展,但它们基于 Ted Pattison 的示例:

  1. 第 2 章: SharePoint Foundation 开发(向下滚动到在 Visual Studio 中使用 Windows PowerShell 脚本自动执行任务)
  2. 面向 SharePoint 专业人员的 PowerShell 新手训练营

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:

  1. Chapter 2: SharePoint Foundation Development (scroll down to Using Windows PowerShell Scripts to Automate Tasks in Visual Studio)
  2. PowerShell Boot Camp for SharePoint Professionals
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文