Tag Archives: CppCommon

Microsoft.CppCommon.targets (132,5): how to solve error msb3073?

Originally, I wanted to generate DLL file and copy it to the specified path automatically, but the result of compilation was error:

1> syAve.vcxproj -> D:\My Resources\Hello World\ test \Smer 2019.4.28\Debug\ syave. DLL
1> The system could not find the specified file.
1> The system could not find the specified file.
1> C: \ Program Files \ MSBuild \ Microsoft (x86) Cpp \ v4.0 \ V120 \ Microsoft CppCommon. The targets (132, 5) : error MSB3073: command “copy D: \ My Resources \ Hello World \ test \ Smer 2019.4.28 \ Debug \ syAve lib).
\Smer\Lib\Debug
1> C: \ Program Files \ MSBuild \ Microsoft (x86) Cpp \ v4.0 \ V120 \ Microsoft CppCommon. The targets (132, 5) : error MSB3073: copy D: \ My Resources \ Hello World \ test \ Smer 2019.4.28 \ Debug \ syAve DLL.. \Smer
\Lib\Debug
1> C: \ Program Files \ MSBuild \ Microsoft (x86) Cpp \ v4.0 \ V120 \ Microsoft CppCommon. The targets (132, 5) : error MSB3073:
1 & gt; C: \ Program Files \ MSBuild \ Microsoft (x86) Cpp \ v4.0 \ V120 \ Microsoft CppCommon. The targets (132, 5) : error MSB3073: : VCEnd “have withdrawn, the code is 1.

The reason: the copy command does not support paths with Spaces. (Note: Chinese is supported.)
The solution: Paths in quotes!