windows - 构建项目时的权限问题

标签 windows visual-studio-2010

我试图让一个项目在一台机器上构建,但我得到以下信息:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(744,5): warning MSB3075: The command "regsvr32 /s "C:\builds\working\\Win32\Debug\projx86.dll"" exited with code 5. Please verify that you have sufficient rights to run this command.
The previous error was converted to a warning because the task was called with ContinueOnError=true.
Build continuing because "ContinueOnError" on the task "Exec" is set to "true".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(756,5): error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions.

我使用的用户帐户是机器上的管理员,所以它不应该拥有最高权限吗?

我可以转到启动项并右键单击并以管理员身份运行,这可能会对它进行排序,但我正在尝试自动构建和运行该项目,所以我不能使用该方法。

有人知道我该如何解决这个问题吗?

最佳答案

Solution Explorer ->[YourProject]->Properties->Linker ->General->Per-user Redirection "TRUE"

关于windows - 构建项目时的权限问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12249040/

相关文章:

windows - cmd:打开文件夹的资源管理器窗口(如果尚未打开)

windows - 在 Docker for Windows 中,mkdir/chown 的权限被拒绝

windows - 用于监视某个程序的 CPU 使用率并对其使用react的批处理脚本

c++ - Release 与 Debug 版本中变量的奇怪行为

windows - 是否可以在 Windows Azure 上部署进程外 COM 服务器并更改其激活权限?

c# - 如何使用正则表达式删除 aspx 页面源代码中的 CSS 类?

visual-studio-2010 - 安装 Visual Studio 2012 Release Preview 后出现错误 'LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt'

c# - 我可以从 Visual Studio 2010 中运行 NUnit 测试吗?

c++ - 跑完定制迭代器的末尾

windows - Autohotkey:发送 5 位十六进制 unicode 字符