错误MSB3073退出代码3 [英] Error MSB3073 exited with code 3

查看:567
本文介绍了错误MSB3073退出代码3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将项目从VC ++ 6.0转换为VC ++ 2010,这些是我编译项目时所经历的步骤:

I have converted a project from VC++ 6.0 to VC++ 2010, and these are the steps I went through when I compiled the project:


  • 清洁解决方案
  • 重建解决方案或
  • 构建解决方案(第1次)

以下是我关注时出现的错误上述步骤:

Here is the error I get when I follow those steps above:

错误MSB3073:命令"regsvr32 / s / c"C:\ SourceControl \ MyProject \.\Debug \ MyProject.dll"

echo regsvr32 exec。时间> " .\Debug\regsvr32.trg"

echo在MTS中使用MTS组件之前执行mtxrereg.exe

error MSB3073: The command "regsvr32 /s /c "C:\SourceControl\MyProject\.\Debug\MyProject.dll"
echo regsvr32 exec. time > ".\Debug\regsvr32.trg"
echo Execute mtxrereg.exe before using MTS components in MTS

:VCEnd"退出代码3.  C:\Program Files(x86)\ MSBuild\Microsoft.Cpp \v4.0 \ Microsoft.CppCommon.targets  183  6

:VCEnd" exited with code 3. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 183 6

然而, 在我做了一个"构建解决方案"之后立即收到错误后立即只有我得到Build成功

However,  immediately after getting that error where I do just a “Build Solution” ONLY I get Build succeeded

在Project>下属性>配置属性>自定义构建步骤我有命令行:

Under Project > Properties > Configuration Properties > Custom Build Step I have Command Line:

regsvr32 / s / c" $(TargetPath)" b
echo regsvr32 exec。时间> " $(OutDir)regsvr32.trg"

echo在MTS中使用MTS组件之前执行mtxrereg.exe

regsvr32 /s /c "$(TargetPath)"
echo regsvr32 exec. time > "$(OutDir)regsvr32.trg"
echo Execute mtxrereg.exe before using MTS components in MTS

有谁知道为什么会这样,我怎么能解决它?

Does anyone know why this happens and how I can resolve it?

注意: 我确实让VS 2010设置为"以管理员身份运行"&ndquo;

NOTE:  I do have VS 2010 set to “Run As Administrator”

谢谢,

推荐答案

嗨SAL,

 

感谢您在MSDN论坛上发帖。

 

根据我的经验和分析在这个问题上,我认为这个问题存在一些可能的原因。例如,也许DLL已经成功注册,也许你没有足够的力量来注册它,并且可能有一些问题与
代码等等。目前我无法决定哪一个不幸的是,根本原因。


 

我建议您尝试在命令行中注册DLL。请注意您应该以管理员身份运行CMD。如果这不起作用,请在此处发布错误消息,随时告诉我们。我们会继续就此问题与您合作。

 

祝你好运,

Helen
Hi SAL,
 
Thanks for your post in the MSDN Forum.
 
Based my experience and analysis into this issue, I think there some possible reasons for this issue. For example, perhaps the DLL has already been registered successfully, maybe you have not got enough power to register it, and there may be some issues with the codes, etc. At present I am not able to decide which one is the root cause unfortunately.
 
I suggest you try registering the DLL in command line. Please pay attention that you should run CMD as administrator. If this doesn't work, please post the error messages here and feel free to let us know. We'll continue working with you on this issue.
 
Best regards,
Helen


这篇关于错误MSB3073退出代码3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆