本文介绍了VS2010 / \错误MSB3073 / \退出代码255的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我尝试构建项目但是给我这个错误=   MSB3073:已退出代码255
我更改了"通话"用"cmd / c"表示但是问题没有解决。
预建活动:
pushd" $(SolutionDir)\ ..\tools"
call" $(SolutionDir)\..\tools\svnrev.cmd"
popd
svnrev.cmd:
@echo off
IF NOT EXIST lastrev.txt(
echo 0> lastrev.txt
)
set REVISION =
FOR / F" ; tokens = 2 skip = 4" %% G IN('svn info --username svnbot --password haxhaxhaxhax --no-auth-cache --revision HEAD .. \ ..')如果没有定义修订版REVISION = %% G
FOR / F %% H IN(lastrev.txt)DO SET LASTREVISION = %% H
echo当前版本是%REVISION%
echo最后修订版%LASTREVISION%
IF%LASTREVISION%NEQ%REVISION%(
echo //由svnrev.cmd生成> .. \\\\code\hers\buildnumber.h
echo #define BUILDNUMBER%REVISION%>> .. \\\\code\hers\buildnumber.h
echo #define BUILDNUMBER_STR"%REVISION%">> .. \ .. \代码\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ >
解决方案
Hello,
I try to build the project but give me this Error = MSB3073: Exited with code 255
I change "call" with "cmd /c" but problem not fixed .
Pre-Build Event :
pushd "$(SolutionDir)\..\tools" call "$(SolutionDir)\..\tools\svnrev.cmd" popdsvnrev.cmd :
@echo off IF NOT EXIST lastrev.txt ( echo 0 > lastrev.txt ) set REVISION= FOR /F "tokens=2 skip=4" %%G IN ('svn info --username svnbot --password haxhaxhaxhax --no-auth-cache --revision HEAD ..\..') DO IF NOT DEFINED REVISION SET REVISION=%%G FOR /F %%H IN (lastrev.txt) DO SET LASTREVISION=%%H echo Current revision is %REVISION% echo Last revision is %LASTREVISION% IF %LASTREVISION% NEQ %REVISION% ( echo // generated by svnrev.cmd > ..\..\code\hers\buildnumber.h echo #define BUILDNUMBER %REVISION% >> ..\..\code\hers\buildnumber.h echo #define BUILDNUMBER_STR "%REVISION%" >> ..\..\code\hers\buildnumber.h echo %REVISION% > lastrev.txt )
解决方案
这篇关于VS2010 / \错误MSB3073 / \退出代码255的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!