在 Visual Studio 和 TFS 源代码管理中切换用户上下文
在 Windows 7 计算机上使用 Visual Studio 开发 ASP.net 应用程序时。有时我需要测试 Internet Explorer 6 兼容性。我测试 IE 6 的方法是在本地计算机上运行虚拟机。
我发现在父开发计算机上访问开发的最简单方法是将我的 ASP.net 项目切换为使用我的计算机的本地 IIS,然后通过虚拟机访问它。这样做的一个问题是,为了切换到项目以使用计算机的本地 IIS,需要以管理员身份运行 Visual Studio。
当我以管理员身份运行并在 TFS 源代码管理上执行“获取最新”时,下次在非提升的安全上下文中运行 Visual Studio 时,我会遇到权限问题。首先,Visual Studio 没有覆盖这些文件的权限。我原本以为这是所有权问题。我转到我的 Worspace 目录并对该文件夹进行了递归更改所有者,但这似乎没有解决问题。解决此问题的唯一确定方法是继续在提升的上下文中运行 Visual Studio,或者删除工作区中的所有内容并获取新副本。
我不想将 Visual Studio 切换到在提升的安全上下文中运行,但由于无法远程访问 IDE 的开发服务器,我觉得这不是一个选择。我发现可以设置反向代理以便可以访问它,但是我发现执行此操作的唯一工具非常昂贵,并且我找不到任何我可以理解的关于使用以下命令设置反向代理的说明:免费工具。
如果有人可以提供有关如何使用 Win7 免费提供的一些工具设置反向代理的说明,那将是名义上的,否则我想听到有关解决权限问题的建议。删除一个项目并获得新的作品,但这会消耗相当多的时间。
While developing ASP.net applications on a Windows 7 machine in Visual Studio. Sometimes I need to do testing for Internet Explorer 6 compatibility. The way I test IE 6 is I have virtual machine running on my local machine.
The easiest way I could figure out to access development on my parent development machine was to switch my ASP.net project to use my machine's local IIS and then access it via the virtual machines. One problems with this is that in order to switch to project to use the machine's local IIS is to run Visual Studio as Administrator.
While I'm running as Administrator and perform a "Get Latest" on TFS Source Control I run into permission's issues the next time I'm running Visual Studio in a non-elevated security context. Firstly, the rights aren't there for Visual Studio to overwrite the files. I originally thought that this was an ownership issue. I went to my Worspace directory and did a recursive change owner on that folder but that didn't seem to solve the problem. The only definite way to overcome this issue is to either keep running Visual Studio in the elevated context, or delete everything in my workspace and get a fresh copy.
I'd prefer not to ever have to switch Visual Studio to run at an elevated security context, but since the IDE's development server cannot be accessed remotely I'm feel like this isn't an option. I've found that it's possible to setup a reverse proxy so that it can be accessed but the only tool I found to do this with is quite expensive and I couldn't find any instructions I could understand on setting up a reverse proxy with a free tool.
If anyone could provide instructions on how to setup a reverse proxy with some tool that is freely available for Win7 that would be nominal, otherwise I would like to hear suggestions on resolving the permissions issues. Deleting a project and getting fresh works but it consumes a fair amount of time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想你可以使用 Fiddler; 这里有一篇文章,其中包含有关使用 Fiddler 允许 iphone 与开发 Web 服务器配合使用的说明,我想您可以根据您的情况进行调整。
或者,IIS Express 可能会为你工作?
I imagine you could use Fiddler; Here is a post with instructions on using Fiddler to allow an iphone to work with the dev web server, I imagine you could tweak for your situation.
Alternatively, maybe IIS Express would work for you?