2017-02-01 184 views
0

我制定下VS2013專業Win7的64B企業本地C++ DLL項目。錯誤msb3191解決方案

該項目有4個配置,可以從下面的代碼片段中看到。

在某些階段,我對項目的屬性添加的生成後步驟如下:

copy "$(ProjectDir)$(TargetName).ini" "$(TargetDir)*.*" 

該項目已成功建成並如期.ini文件被複制。但報告如下錯誤:

Error 1 error MSB3191: Unable to create directory "D:\MES\MULTICHANNEL\MULTITHREAD\IOM\IOM.ini D:\MES\MULTICHANNEL\MULTITHREAD\x64\Release". The given path's format is not supported. 
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets 
1228 5 IOM 
Error 2 error MSB3191: Unable to create directory "D:\MES\MULTICHANNEL\MULTITHREAD\IOM\IOM.ini D:\MES\MULTICHANNEL\MULTITHREAD\Release". The given path's format is not supported. 
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets 
1228 5 IOM 
Error 3 error MSB3191: Unable to create directory "D:\MES\MULTICHANNEL\MULTITHREAD\IOM\IOM.ini D:\MES\MULTICHANNEL\MULTITHREAD\x64\Debug". The given path's format is not supported. 
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets 
1228 5 IOM 
Error 4 error MSB3191: Unable to create directory "D:\MES\MULTICHANNEL\MULTITHREAD\IOM\IOM.ini D:\MES\MULTICHANNEL\MULTITHREAD\Debug". The given path's format is not supported. 
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets 
1228 5 IOM 

這是怎麼回事?

謝謝你在前進,

回答

0

正確的解決辦法是在生成後步驟來定義如下:

copy $(ProjectDir)$(TargetName).ini $(TargetDir)*.* 

也就是說,省略所有引號"