问题描述
我已将项目从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”
谢谢,
推荐答案
这篇关于错误MSB3073退出代码3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!