private static CustomScriptAssembly LoadCustomScriptAssemblyFromJson(string path) { string json = File.ReadAllText(path); CustomScriptAssemblyData customScriptAssemblyData = CustomScriptAssemblyData.FromJson(json); return(CustomScriptAssembly.FromCustomScriptAssemblyData(path, customScriptAssemblyData)); }
public static CustomScriptAssembly LoadCustomScriptAssemblyFromJson(string path, string json, string guid) { try { var customScriptAssemblyData = CustomScriptAssemblyData.FromJson(json); return(CustomScriptAssembly.FromCustomScriptAssemblyData(path, guid, customScriptAssemblyData)); } catch (Exception e) { throw new AssemblyDefinitionException(e.Message, path); } }