OneDrive上的Visual Studio解决方案 [英] Visual Studio solution on OneDrive

查看:327
本文介绍了OneDrive上的Visual Studio解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以将Visual Studio解决方案放在OneDrive中并从那里开始工作,还是可能以某种方式导致数据丢失?我想随身携带我的项目,而不必担心每次都将它们放在闪存驱动器中.

Can I put my Visual Studio solution in OneDrive and work from there or can that end up in data loss somehow? I want to take my projects with me wherever I am and not worry about putting them on a flash drive every time.

推荐答案

OneDrive不仅会同步(复制到云中)您的所有源文件,还会同步Visual Studio生成的所有二进制文件,这将不必要地占用一些空间.您的OneDrive并产生大量同步流量.我想最好使用VSTS(Visual Studio Team Services)和Git来保持源在您各种PC上的同步并在云中进行备份.

OneDrive will not just synch (copy to the cloud) all your source files, but also all the binaries Visual Studio generates, which will use quite some space unnecessarily on your OneDrive and generates lots of synch traffic. I guess it is better to use VSTS (Visual Studio Team Services) and Git to keep the sources synchronised on your various PCs and backed up in the cloud.

从OneDrive路径中删除Visual Studio.通常,最好不要让OneDrive同步文档中存储的所有内容.

Remove the Visual Studio from your OneDrive path. In general, it is better not to let OneDrive synching everything stored in Documents.

操作方法:首先在OneDrive之外制作一份文档副本,例如C:.然后从同步中删除OneDrive Online中的文档( https://onedrive.live.com ),并删除OneDrive中的文档在线的.在您的PC上,将包含文档"副本的文件夹复制回文档".最后,将新文件夹添加到OneDrive文件夹(C:\ Users \ Xxx \ OneDrive).将您要OneDrive同步的所有文件夹从文档"移到该新文件夹.

How to do that: Make first a copy of Documents outside of OneDrive, for example C:. Then remove Documents in OneDrive Online (https://onedrive.live.com) from synching and delete Documents in OneDrive Online. On your PC, copy back from the folder with the Documents copy to Documents. Finally, add a new folder to the OneDrive folder (C:\Users\Xxx\OneDrive). Move all Folders you want OneDrive to synch from Documents to that new folder.

也许还可以要求OneDrive停止同步文档并从OneDrive中的文档中删除所有内容.但是我建议将文档副本保留在某处,以防万一出问题.

Maybe it is also possible just to ask OneDrive to stop synching Documents and delete everything from Documents in OneDrive. But I recommend to keep a copy of documents somewhere, in case anything goes wrong.

这篇关于OneDrive上的Visual Studio解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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