如何在可移动驱动器上关闭 Visual Studio 中 .sln 文件的加密? [英] How to turn off encrypting of .sln files in Visual Studio on removable drive?

查看:45
本文介绍了如何在可移动驱动器上关闭 Visual Studio 中 .sln 文件的加密?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题描述:(至少在 VS2005 和 VS2008 中出现,未在 VS 2010 中测试)

Problem description: (occurs at least in VS2005 and VS2008, not tested in VS 2010)

如果从可移动驱动器打开项目(例如 .csproj)或解决方案文件(.sln),并且发生了一些事情......似乎如果驱动器在没有安全移除的情况下断开连接,或者如果计算机崩溃或如果 VS 崩溃,那么项目和/或解决方案文件被加密.似乎 Visual Studio 在打开时加密项目文件,只有在 Visual Studio 或项目正确关闭时才解密它们.如果发生意外情况,文件将保持加密状态.

If project (e.g. .csproj) or solution file (.sln) is opened from removable drive, and something happens ... seems like if drive is disconnected without safe removing, or if computer crashes or if VS crashes, then project and/or solution files got encrypted. It seems like Visual Studio encrypts project files when opened and only decrypts them when Visual Studio or project is correctly closed. If something unexpected happens, files remain encrypted.

在这些情况下是东芝硬盘,但我也想到其他可移动硬盘驱动器或 USB 密钥.

It is Toshiba hard-disk in these cases, but occurred to me also on other removable hard drives or USB keys.

这不是问题,直到磁盘连接到同一台计算机(文件已加密,因此只有加密它们的 Win 用户才能打开它们).但是,当磁盘连接到另一台计算机时,或者更糟……当 Windows 安装损坏时,项目文件将无法访问.

This is not a problem, until disk is connected to the same computer (files are encrypted, so they can be opened only by Win user that encrypted them). But when disk is connected to another computer, or even worse ... when Windows installation gets corrupted, then the project files are no more accesible.

有什么方法可以关闭此功能吗?或者它是一个错误,需要通过不使用可移动驱动器"来解决?

Is there some way to turn this functionality off? Or is it a bug and needs to be solved just by "not using removable drives"?

推荐答案

我不知道解决方案或项目文件有任何内置加密,而且我经常在 U 盘上移动项目.这可能是由您计算机上的某些服务或磁盘本身提供的 - 但我想知道更可能的解释是文件损坏还是磁盘损坏.

I am not aware of any inbuilt encryption for either solution or project files, and I quite often move projects around on USB stick. It is possible that this is being provided by some service on your computer, or by the disk itself - but I wonder if a more likely explanation is simply file corruption or a damaged disk.

这篇关于如何在可移动驱动器上关闭 Visual Studio 中 .sln 文件的加密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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