Visual Studio输出文件权限? [英] Visual Studio output file permissions?

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

问题描述

我使用Visual Studio 2010,如何设置或自动将输出文件的所有者从Visual Studio(如可执行文件)更改为管理员以外的用户?



所有输出文件当前由管理员拥有(由于Visual Studio由管理员权限启动),所以有时候由于访问权限,我无法删除这些文件。



有时候,visual studio本身也不能删除它(在我运行可执行文件之后),直到几分钟,它真的很烦人,当我需要重建那些可执行文件。任何人都知道这里的实际问题是什么?



错误消息是:错误LNK1168:无法打开[路径到文件] .exe写入

解决方案

没有人给出正确的答案,所以我把这个问题作为操作系统中的一个bug,而不是Visual Studio可能是因为文件句柄由系统进程(PID 4)拥有而导致的,因为它使用进程资源管理器报告文件句柄无效,因此我无法释放文件句柄。


I'am using Visual Studio 2010, how to set or automatically change owner of the output file from Visual Studio (such as executable file) to user other than administrator?

all output files currently is owned by Administrator (due to Visual studio is launch by administrative privilege), so sometime I can't delete those files due to access permissions.

sometime visual studio itself can't delete it too (after i ran the executable) until few minutes, its really annoying when I need to rebuild those executable. anyone know what's the actual problem here?

error message is : error LNK1168: cannot open [path to file].exe for writing

解决方案

no one give the right answer, so I close this question as a bug within operating system, not in Visual Studio, maybe the O/S is compromised since the file handle is owned by 'System' process (PID 4) and I can't release the file handle since it reporting the file handle is invalid using process explorer.

这篇关于Visual Studio输出文件权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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