我想创建一个这样的脚本:
static int Main(string[] args)
{
if ( !File.Exists( @"E:\Ivara\Cache\TimeCacheLastUpdated.txt" ) )
{
return -1;
}
return 6;
}
并像这样运行它并获得错误级别:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Roslyn\csi.exe" E:\build\CruiseControl\bin\TestLoggingConfigExists.csx
回声 %ERRORLEVEL%