Пример #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
 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();
     }
 }