命令“regsvr32 /s /n /i:user "XXXXXX"”已退出,代码为 3

时间:2017-02-23 18:53:15   收藏:0   阅读:1666

问题:命令“regsvr32 /s /n /i:user "F:\XXXXXXXXXXXXXXXXX\Release\One.ocx"”已退出,代码为 3

 

解决方法:

The issue that causes "Error MSB3073 exited with code 3" happens to be with the VALUE in the Outputs property under Project > Properties > Configuration Properties > Custom Build Step.

When I choose Edit for Outputs, a dialog box comes up.  I enter a value of "$(OutDir)\regsvr32.trg" in the upper textbox then click OK.  Now for some reason VS 2010 changes the display text to show "$(OutDir)\regsvr32.trg;%(Outputs)".  I‘m not sure why or if that is the cause of the problem.

However, I will get "Build Successful" if I change my Output value to "<inherit from parent or project defaults>" instead of choosing Edit and putting a value in.  No more Error MSB3073 exited with code 3.

I guess I can say this issue is resolved but I‘d like to know why/what causes this issue to begin with.

项目属性-》自定义生成步骤(Custom Build Step)-》输出(Outputs)-》Edit,弹出框,在上面输入框输入“$(OutDir)\regsvr32.trg”,同时勾选下面“inherit from parent or project defaults”  点击OK, 重新编译 ,问题解决

原文:http://www.cnblogs.com/seer/p/6434549.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!