将 Visual Studio 项目保存在网络驱动器上 [英] Keeping Visual Studio Projects on a Network Drive

查看:27
本文介绍了将 Visual Studio 项目保存在网络驱动器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们刚刚将所有文件从本地存储到网络驱动器.问题是我的 VS 项目现在也存储在那里.(还没有版本控制系统,正在努力.)我知道我过去听说过这样做的问题,但从未听说过解决方法.有解决办法吗?

We just did a move from storing all files locally to a network drive. Problem is that is where my VS projects are also stored now. (No versioning system yet, working on that.) I know I heard of problems with doing this in the past, but never heard of a work-around. Is there a work around?

所以我的 VS 是在本地安装的.这些文件位于网络驱动器上.我怎样才能让它工作?

So my VS is installed locally. The files are on a network drive. How can I get this to work?

我知道应该做什么,但是我现在可以使用创可贴来解决这个问题并维护网络驱动器吗?

I know what SHOULD be done, but is there a band-aid I can put on right now to fix this and maintain the network drive?

编辑 2:我确定我不理解某些内容,但是 Bob King 有正确的想法.当首席 Web 开发人员回到办公室时,我将与他一起找出临时解决方案,直到我们进行某种版本控制设置.谢谢你的想法.

EDIT 2: I am sure I am not understanding something, but Bob King has the right idea. I'll work with the lead web developer when he gets back into the office to figure out a temporary solution until we get some sort of version control setup. Thanks for the ideas.

推荐答案

虽然我们使用源代码管理,但我们也从网络驱动器(不是共享目录,网络驱动器上的私有目录)运行所有项目.网络驱动器每晚备份,也使用卷影复制,所以如果你需要恢复到之前它成为 SC 的方式,那么你可以.

While we do use Source Control, we do also run all our projects from Network Drives (not shared directories, private directories on network drives). The network drives are backed up nightly, and also use Volume Shadow Copy, so if you need to revert to something before it made it's way to SC, then you can.

要让项目以正确的权限正确运行,请遵循 这些步骤.

To get projects to run correctly with the right permission, follow these steps.

基本上,您只需将共享目录映射到驱动器,然后根据该 Url 向所有代码授予权限.假设您映射到N:\",然后使用N:\*"作为您的 Url 模式.您需要通配符并不明显,但您确实需要.

Basically, you've just got to map the shared directory to a drive, and then grant permission, based on that Url, to all code. Say you map to "N:\", then use "N:\*" as your Url pattern. It isn't obvious you need to wildcard, but you do.

这篇关于将 Visual Studio 项目保存在网络驱动器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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