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

本文详细介绍了如何解决在使用Visual Studio 2010编译过程中出现的“ErrorMSB3073 exited with code 3”错误。通过调整项目属性中的自定义生成步骤(CustomBuildStep)的输出设置,将值更改为$(OutDir) egsvr32.trg并勾选“inheritfromparentorprojectdefaults”,可以有效避免此错误,实现项目的成功构建。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题:命令“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, 重新编译 ,问题解决

转载于:https://www.cnblogs.com/seer/p/6434549.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值