构build项目时的权限问题

我试图让一个项目build立在一台机器上,但我得到以下几点:

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. 

我使用的用户帐户是机器上的pipe理员,所以应该没有最高的权限?

我可以去启动,右键单击并以pipe理员身份运行,可以对其进行sorting,但即时通讯尝试自动生成和运行此项目,所以我不能使用该方法。

任何人都知道我可以解决这个问题?

解决方案资源管理器 – > [YourProject] – >属性 – >链接器 – >常规 – >每用户重定向“TRUE”

在C ++ ATL项目上工作时,我发现了同样的问题。

在我的情况下,当我添加一个新的ATL类时,我在资源文件(.rc)中缺少一行,添加了新类资源文件(.rgs)的资源类型“注册表”。 这造成了上述相同的许可问题。

@LittleFairy的答案可能是最好的。 但是你可以以管理员身份运行Visual Studio。

注意:您需要以管理员身份明确启动Visual Studio。 只有具有管理权限的用户帐户是不够的。