在 Visual Studio 中高效处理远程项目 [英] Working efficiently on remote projects in Visual Studio

查看:43
本文介绍了在 Visual Studio 中高效处理远程项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时我会远程办公,需要通过我的笔记本电脑在办公室的盒子里处理项目文件.我在两种方法之间来回切换:

On occasion I telecommute and need to work on the project files on my box at the office via my laptop. I bounce back and forth between two methods of doing this:

  1. 我远程访问办公室的机器,并通过 RDP 在该机器上处理 Visual Studio 实例.
  2. 我将包含解决方案文件的文件夹设置为网络共享,并在本地(笔记本电脑)安装的 Visual Studio 上加载解决方案

这些选项远非完美.通过网络共享加载解决方案可以提供一种响应式体验,除非 VS 需要读/写文件,而这种情况发生的操作比人们意识到的要多.RDP 方式避免了读写文件的网络延迟,但会带来延迟体验,而且每次登录时我都必须重新配置 VS 的布局以容纳单个显示器.

These options are far from perfect. Loading the solution via network share makes for a responsive experience unless VS needs to read/write files, which happens with more actions than one might realize. The RDP method avoids the network latency of reading and writing files, but makes for a laggy experience, plus I have to reconfigure VS's layout everytime I log in to accommodate a single monitor.

我想做的是继续处理我的 VS 本地/笔记本电脑副本,但想办法大幅加快速度.出于各种原因,我不想提交和提取源代码管理以跨机器共享.

What I'd like to do is continue to work on my local/laptop copy of VS but figure out a way to speed it up substantially. For a variety of reasons, I do not want to have to commit to and pull from source control to share across machines.

关于在加载远程项目文件时如何加快使用 Visual Studio 的速度有什么建议吗?

Any suggestions on how to speed up working with Visual Studio when loading remote project files?

推荐答案

将本地文件存储在 Dropbox 安装下有助于同步文件,但需要注意以下几点:

Storing your local files under a Dropbox installation can help with synchronizing your files, but it comes with a couple caveats:

  1. 在您同步的每台机器上,您必须能够将文件存储在您的 /Dropbox 目录下.例如,这在您的笔记本电脑上可能可行,但在您的办公盒上则不可行.

  1. On each machine that you synchronize, you must be able to store the files under your /Dropbox directory. This may be feasible on your laptop but not on your office box, for example.

Dropbox 以自己随意的速度同步.这在其初始同步时最为明显,但也会对后续同步造成短暂延迟.当您在家中打开笔记本电脑时,在开始工作之前,您需要密切注意任务栏图标以确保它是最新的".

Dropbox synchronizes at its own casual pace. This is most noticeable on its initial sync, but also imposes a short delay on subsequent synchronizations. When you open your laptop at home, you'll need to keep an eye on the taskbar icon to ensure it is "up to date" before you begin working.

考虑到这些警告,我喜欢将 Dropbox 用于我的个人项目有以下几个原因:

Given those caveats, I love using Dropbox for my personal projects for a couple reasons:

  1. 由于我不在这些项目中使用源代码管理,因此覆盖您想要保留的内容相对容易.Dropbox 可让您快速访问整个修订历史记录,让您可以在需要时回滚.这不计入我的免费配额.

  1. Since I don't use source control on those projects, it is relatively easy to overwrite something you want to keep. Dropbox gives you fast access to your entire revision history, allowing you to roll back whenever needed. This does not count against my free quota.

即使我删除或移除文件,Dropbox 仍会继续存储它们,并允许我在多年后取消删除和恢复它们.同样,所有这些都不会影响我的免费配额.

Even when I delete or remove files, Dropbox continues to store them and allows me, years later, to undelete and recover them. Again, all of this happens without impacting my free quota.

正如问题评论中提到的 OP,Google Drive 提供了类似于 Dropbox 的解决方案.

As the OP mentioned in the question's comments, Google Drive offers a solution similar to Dropbox.

这篇关于在 Visual Studio 中高效处理远程项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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