gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 12:37:17 25 4
gpt4 key购买 nike

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

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com