Код: Выделить всё
CallBack callback = new CallBack(this.Output);
using(ClientBuildManager cbm = new ClientBuildManager(strVirtualDirectory, strRootDirectory))
{
try
{
foreach(string file in files)
{
try
{
cbm.CompileFile(file, callback);
}
catch(Exception ex)
{
this.Output.Print(OutputLevel.Error, $"Parse error for '{file}': {ex.Message}");
nErrors++;
}
}
catch
{
// nop
}
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... attempt-wa
Мобильная версия