I'd like to create a script like this:
static int Main(string[] args)
{
if ( !File.Exists( @"E:\Ivara\Cache\TimeCacheLastUpdated.txt" ) )
{
return -1;
}
return 6;
}
And run it like this and get the error level:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Roslyn\csi.exe" E:\build\CruiseControl\bin\TestLoggingConfigExists.csx
ECHO %ERRORLEVEL%