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:
Rebuild Solution or
Build Solution (The 1st time)
Here is the error I get when I follow those steps above:
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" exited with code 3. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 183 6
However, immediately after getting that error where I do just a "Build Solution" ONLY I get Build succeeded
Under Project > Properties > Configuration Properties > Custom Build Step I have Command Line:
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?
NOTE: I do have VS 2010 set to "Run As Administrator"