private static int Main(string[] args) { try { // Set the SiliconStudioXenkoDir environment variable var installDir = DirectoryHelper.GetInstallationDirectory("Xenko"); Environment.SetEnvironmentVariable("SiliconStudioXenkoDir", installDir); var packageBuilder = new PackageBuilderApp(); var returnValue = packageBuilder.Run(args); return(returnValue); } catch (Exception) { // Console.WriteLine("Unexpected exception in AssetCompiler: {0}", ex); return(1); } finally { // Free all native library loaded from the process // We cannot free native libraries are some of them are loaded from static module initializer // NativeLibrary.UnLoadAll(); } }
private static int Main(string[] args) { try { // Set the SiliconStudioXenkoDir environment variable var installDir = DirectoryHelper.GetInstallationDirectory("Xenko"); Environment.SetEnvironmentVariable("SiliconStudioXenkoDir", installDir); var packageBuilder = new PackageBuilderApp(); var returnValue = packageBuilder.Run(args); return returnValue; } catch (Exception) { // Console.WriteLine("Unexpected exception in AssetCompiler: {0}", ex); return 1; } finally { // Free all native library loaded from the process // We cannot free native libraries are some of them are loaded from static module initializer // NativeLibrary.UnLoadAll(); } }
private static int Main(string[] args) { try { var packageBuilder = new PackageBuilderApp(); return packageBuilder.Run(args); } catch (Exception ex) { // Console.WriteLine("Unexpected exception in AssetCompiler: {0}", ex); return 1; } finally { // Free all native library loaded from the process NativeLibrary.UnLoadAll(); } }
private static int Main(string[] args) { try { var packageBuilder = new PackageBuilderApp(); return(packageBuilder.Run(args)); } catch (Exception ex) { // Console.WriteLine("Unexpected exception in AssetCompiler: {0}", ex); return(1); } finally { // Free all native library loaded from the process NativeLibrary.UnLoadAll(); } }
private static int Main(string[] args) { try { var packageBuilder = new PackageBuilderApp(); return packageBuilder.Run(args); } catch (Exception ex) { // Console.WriteLine("Unexpected exception in AssetCompiler: {0}", ex); return 1; } finally { // Free all native library loaded from the process // We cannot free native libraries are some of them are loaded from static module initializer // NativeLibrary.UnLoadAll(); } }
private static int Main(string[] args) { try { var packageBuilder = new PackageBuilderApp(); return(packageBuilder.Run(args)); } catch (Exception ex) { // Console.WriteLine("Unexpected exception in AssetCompiler: {0}", ex); return(1); } finally { // Free all native library loaded from the process // We cannot free native libraries are some of them are loaded from static module initializer // NativeLibrary.UnLoadAll(); } }