建设后事件C ++ VS 2012

时间:2014-08-29 13:40:22

标签: c++ compilation

您好我的编译有一个问题

我有MSB3073错误1

VS2008项目中的命令是     SETLOCAL

set SDK_USAGE=1
if $(Configuration) == Debug_DLLOnly_ANSI (set SDK_USAGE=0)
if $(Configuration) == Debug_DLLOnly_UNICODE (set SDK_USAGE=0)
if $(Configuration) == Release_DLLOnly_ANSI (set SDK_USAGE=0)
if $(Configuration) == Release_DLLOnly_UNICODE (set SDK_USAGE=0)
if $(Configuration) == Debug_LIBOnly_ANSI (set SDK_USAGE=2)
if $(Configuration) == Debug_LIBOnly_UNICODE (set SDK_USAGE=2)
if $(Configuration) == Release_LIBOnly_ANSI (set SDK_USAGE=2)
if $(Configuration) == Release_LIBOnly_UNICODE (set SDK_USAGE=2)


set IS_64BIT=0
if $(Platform) == x64 (set IS_64BIT=1)

if exist FileCopy.bat (call FileCopy.bat %25SDK_USAGE%25 %25IS_64BIT%25 "$(TargetDir)")

我在找到http://social.msdn.microsoft.com/Forums/vstudio/en-US/8e379465-e07b-415d-af8a-5c9e7064a95c/error-msb3073-command-exited-with-code-1-while-building-the-project?forum=tfsbuild

之后尝试了关注代码
setlocal

set SDK_USAGE=1
if $(Configuration) == Debug_DLLOnly_ANSI (set SDK_USAGE=0)
if $(Configuration) == Debug_DLLOnly_UNICODE (set SDK_USAGE=0)
if $(Configuration) == Release_DLLOnly_ANSI (set SDK_USAGE=0)
if $(Configuration) == Release_DLLOnly_UNICODE (set SDK_USAGE=0)
if $(Configuration) == Debug_LIBOnly_ANSI (set SDK_USAGE=2)
if $(Configuration) == Debug_LIBOnly_UNICODE (set SDK_USAGE=2)
if $(Configuration) == Release_LIBOnly_ANSI (set SDK_USAGE=2)
if $(Configuration) == Release_LIBOnly_UNICODE (set SDK_USAGE=2)


set IS_64BIT=0
if $(Platform) == x64 (set IS_64BIT=1)

if exist FileCopy.bat (call FileCopy.bat %25SDK_USAGE%25 %25IS_64BIT%25 '$(TargetDir)')

但不成功,请问你有什么想法吗?

最诚挚的问候。

编辑:如果存在FileCopy.bat,我在删除时解决了我的问题(调用FileCopy.bat%25SDK_USAGE%25%25IS_64BIT%25' $(TargetDir)')

0 个答案:

没有答案