示例#1
0
        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();
            }
        }
示例#2
0
        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();
            }
        }
示例#3
0
 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();
     }
 }
示例#4
0
 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();
     }
 }
示例#5
0
文件: Program.cs 项目: releed/paradox
 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();
     }
 }
示例#6
0
 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();
     }
 }