Changed csharp script compilation algorithm to be best effort.

This commit is contained in:
MapleWheels
2026-04-13 14:19:31 -04:00
parent 344027d757
commit a2c67f7af5
2 changed files with 4 additions and 2 deletions
@@ -677,6 +677,8 @@ public class PluginManagementService : IAssemblyManagementService
// overwrite result with good compilation
if (res2.IsSuccess)
{
var reasonsStr = res.Reasons.Aggregate("", (accum, reason) => accum + "\n" + reason.Message);
_logger.LogWarning($"Attempted compilation of {scripts.Key} for package {contentPackRes.Key.Name} succeeded. Original errors were: \n {reasonsStr}");
res = res2;
}
}