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

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

问题描述

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

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?

当前所有输出文件都归管理员所有(因为 Visual Studio 是由管理员权限启动的),所以有时由于访问权限我无法删除这些文件.

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.

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

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 LNK1168: cannot open [path to file].exe for writing

推荐答案

没有人给出正确的答案,所以我将这个问题作为操作系统中的一个 bug 关闭,而不是在 Visual Studio 中,也许 O/S 被破坏了,因为文件句柄归系统"进程 (PID 4) 所有,我无法释放文件句柄,因为它使用进程资源管理器报告文件句柄无效.

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天全站免登陆