SharePoint - 如何远程连接到生产服务器 [英] SharePoint -how to connect remotely to production server

查看:57
本文介绍了SharePoint - 如何远程连接到生产服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 SharePoint 开发的新手,有一个问题.

I am new to SharePoint development and have a question.

我知道 SharePoint 开发可以是 1. 基于工件和 2. 基于程序集.此外,基于工件是通过 Designer 完成的,并支持到生产服务器的远程连接.

I got that SharePoint development could be 1. artifact-based and 2. assembly-based. Also, artifact-based is done with Designer and supports remote connection to the production server.

但是使用 Visual Studio 完成的基于程序集的开发呢?我们是否需要将所需的文件从生产服务器复制"到开发服务器?或者是否有任何黑客"可以使用 Visual Studio 远程连接到生产服务器?

But what about assembly-based development -done with Visual Studio? Do we need to "copy" the required files from the production server to development server? Or is there any "hack" to connect remotely to production server with Visual Studio?

感谢您的帮助.

布鲁诺.

推荐答案

虽然可以在本地编译和远程调试,但这不是最简单的解决方案,而且如果您使用 Visual Studio Sharepoint Extensions 就行不通 - 他们不除非您在本地安装了 Sharepoint,否则无法使用.

While it is possible to compile locally and debug remotely, it is not the easiest solution and just doesn't work if you use Visual Studio Sharepoint Extensions - they don't work unless you have Sharepoint installed locally.

要编译引用 Sharepoint 程序集的程序集,您只需将它们复制到本地机器并从您的项目中引用它们.要远程调试,您必须在测试服务器上安装和配置 Visual Studio 远程调试器.要将 dll 部署到测试服务器,您只需将它们复制到 \Windows\Assembly 文件夹并运行 iisreset.然后,点击您的 Sharepoint 主页,页面出现后,远程附加到测试机器上的所有 w3wp.exe 进程.

To compile an assembly that references Sharepoint assemblies all you have to do is copy them to your local machine and reference them from your project. To debug remotely you have to install and configure Visual Studio Remote Debugger on your test server. To deploy the dlls to the test server you can just copy them to the \Windows\Assembly folder and run iisreset. Then, hit your Sharepoint home page and once the page appears, attach remotely to all w3wp.exe processes on the test machine.

远程调试可能很棘手,因为很多时候您根本无法连接到测试服务器.另一方面,如果您的本地机器不够强大,无法同时处理 Sharepoint 和 Visual Studio,那么这可能是保持您的理智的唯一选择.

Remote debugging can be tricky as many times you will not be able to connect to the test server at all. On the other hand, if your local machine is not strong enough to handle both Sharepoint and Visual Studio, this may be the only option that will preserve your sanity.

这篇关于SharePoint - 如何远程连接到生产服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆