Warning 1 warning MSB3075: The command "regsvr32 /s "D:\Debug\CBho.dll"" exited with code 5. Please verify that you have sufficient rights to run this command. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 677 6 CBho
Error 2 error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 689 6 CBho
warning MSB3075: 命令“regsvr32 /s "D:\NativeAddIn\Release\NativeAddIn.dll"”已退出,代碼為 5。請驗證您是否有足夠的權限來運行此命令。
error MSB8011: 未能注冊輸出。請嘗試啟用“逐用戶重定向”,或者使用提升的權限從命令提示符處注冊該組件。
實際我要注冊的文件是我自己做的插件,但它總會提示需要確認權限,之前搜了很多次都沒找到解決辦法,而且好像是一個很常見的問題,今天搜了一下英文,找到了
解決辦法:
Solution Explorer ->項目節點->鼠標右鍵->Properties->Linker ->General->Pre-user Redirection 設為TRUE 就好了。
對應的中文版是:
Solution Explorer ->項目節點->鼠標右鍵->屬性->鏈接器->常規->逐用戶重定向
--------------------- 本文來自 貓叔66 的CSDN 博客 ,全文地址請點擊:https://blog.csdn.net/qq_31209383/article/details/50787314?utm_source=copy