您的位置:首页 > 其它

error MSB8011: 未能注册输出。请尝试启用“逐用户重定向”,或者使用提升的权限从命令提示符处注册该组件

2014-12-23 15:23 771 查看
原文:http://www.cppblog.com/yanjie2500/archive/2011/07/22/144277.html

Solution Explorer ->项目节点->鼠标右键->Properties->Linker ->General->Pre-user Redirection 设为TRUE 就好了。

原来是我自己把注册 .rgs文件编码改成 utf8 之后,注册失败了 。。。 跟 vs 和 windows7 没有关系 。。。。

We have fixed your issue for the next release. You can workaround the issue via editing a MSBuild file in "%Programfiles%\msbuild\microsoft.cpp\v4.0\Microsoft.cppcommon.targets".
Please backup the file before making any changes.

Please change:

<Target Name="RegisterOutput"

Condition="'$(EmbedManifest)'=='true' and '$(LinkSkippedExecution)' != 'true'">

To:

<Target Name="RegisterOutput"

Condition="'$(EmbedManifest)'=='true' and '$(LinkSkippedExecution)' != 'true' and ('$(_IsNativeEnvironment)' == 'true' or '$(Platform)' == 'Win32')">

The change will filter out incompatable platforms.

我们有固定的下一个版本的问题。 You
can workaround the issue via editing a MSBuild file in "%Programfiles%\msbuild\microsoft.cpp\v4.0\Microsoft.cppcommon.targets".你可以通过编辑解决方法发出的MSBuild文件“的%ProgramFiles%\ MSBuild的\ microsoft.cpp \ 4.0 \ Microsoft.cppcommon.targets”。 Please
backup the file before making any changes.在进行任何更改之前请备份该文件。

The change will filter out incompatable platforms.这种变化会过滤掉不兼容的平台。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐