public static bool TryConvert(string assemblyPath, string outputPath, TaskLoggingHelper log = null) { #if NET46 var appDomain = AppDomain.CreateDomain("loadDllDomain"); var converter = (Proxy)appDomain.CreateInstanceFromAndUnwrap(typeof(Proxy).Assembly.Location, typeof(Proxy).FullName, false, BindingFlags.Default, null, new object[] { assemblyPath, outputPath, log }, null, null); var result = converter.TryRun(); AppDomain.Unload(appDomain); return(result); #else var converter = new FunctionJsonConverter(assemblyPath, outputPath, log); return(converter.TryRun()); #endif }
public static bool TryConvert(string assemblyPath, string outputPath, TaskLoggingHelper log = null) { var converter = new FunctionJsonConverter(assemblyPath, outputPath, log); return(converter.TryRun()); }