VS2010 "error MSB8011” 解决方法

来源:互联网 发布:雕刻机作图软件 编辑:程序博客网 时间:2024/05/16 09:38

 

错误描述:C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(744,5): error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions.

 

形成原因:个人理解是由于在WIN7以上版本,只有管理员权限才可以运行regsvr32.exe程序,也就是说只有管理员权限才能够注册控件或者DLL。

 

解决方法:

     一、运行VS2010时,右键以管理员权限运行,不要直接打开VS2010。

     二、工程-->Propertier-->Linker-->General-->Register Output-->NO。

原创粉丝点击