const string preloadPath = "/usr/share/dotnet.tizen/preload/";
public static void Preload()
{
- DirectoryInfo directory = new DirectoryInfo(preloadPath);
- foreach (FileInfo file in directory.GetFiles())
+ string[] paths = Directory.GetFiles(preloadPath);
+ Array.Sort(paths);
+ foreach (string path in paths)
{
- if (file.Extension.CompareTo(".preload") != 0)
+ if (Path.GetExtension(path) != ".preload")
continue;
try
{
BindingFlags bindingFlag = BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic;
- foreach (string line in File.ReadLines(file.FullName))
+ foreach (string line in File.ReadLines(path))
{
if (line.StartsWith('#') || !line.Contains(".dll") || !line.Contains(' '))
continue;
catch (IOException e)
{
Console.WriteLine(e.ToString());
- Console.WriteLine("[ERROR] Failed to " + file.FullName + " file open");
+ Console.WriteLine("[ERROR] Failed to " + path + " file open");
}
finally
{
- Console.WriteLine("Success to preload : " + file.Name);
+ Console.WriteLine("Success to preload : " + path);
}
}
--- /dev/null
+###########################################
+## AssemblyName.dll TypeName ##
+## AssemblyName.dll TypeName.Preload() ##
+## The methods must not have parameters. ##
+###########################################
+System.IO.FileSystem.dll Interop
+System.IO.FileSystem.dll <PrivateImplementationDetails>
+System.IO.FileSystem.dll System.IO.File
+System.Security.Cryptography.Algorithms.dll Interop
+System.Security.Cryptography.Algorithms.dll System.Security.Cryptography.MD5
+System.Collections.dll <PrivateImplementationDetails>
+System.Collections.dll System.Collections.Generic.HashSet`1
+System.Collections.dll System.Collections.Generic.Queue`1
+System.Private.Uri.dll <PrivateImplementationDetails>
+System.Private.Uri.dll System.Uri
+System.Private.Xml.dll <PrivateImplementationDetails>
+System.Private.Xml.dll System.Xml.IXmlLineInfo
+System.Private.Xml.dll System.Xml.IXmlNamespaceResolver
+System.Runtime.dll System.Collections.Generic.ISet`1
+System.Runtime.dll System.Reflection.RuntimeReflectionExtensions
+System.ObjectModel.dll System.Collections.ObjectModel.ObservableCollection`1
+System.ObjectModel.dll System.Collections.Specialized.INotifyCollectionChanged
+System.ObjectModel.dll System.Collections.Specialized.NotifyCollectionChangedAction
+System.ObjectModel.dll System.Collections.Specialized.NotifyCollectionChangedEventArgs
+System.ObjectModel.dll System.Collections.Specialized.NotifyCollectionChangedEventHandler
+System.ObjectModel.dll System.ComponentModel.INotifyPropertyChanged
+System.ObjectModel.dll System.ComponentModel.PropertyChangedEventArgs
+System.ObjectModel.dll System.ComponentModel.PropertyChangedEventHandler
+System.ObjectModel.dll System.Windows.Input.ICommand
+System.ComponentModel.dll System.IServiceProvider
+System.Linq.dll System.Linq.Enumerable
+System.Linq.dll System.Linq.EnumerableSorter`1
+System.Linq.dll System.Linq.IIListProvider`1
+System.Linq.dll System.Linq.IOrderedEnumerable`1
+System.Linq.dll System.Linq.IPartition`1
+System.Linq.dll System.Linq.OrderedEnumerable`1
+System.Linq.Expressions.dll System.Linq.Expressions.ExpressionVisitor
+System.Security.Cryptography.Primitives.dll System.Security.Cryptography.HashAlgorithm
+++ /dev/null
-###########################################
-## AssemblyName.dll TypeName ##
-## AssemblyName.dll TypeName.Preload() ##
-## The methods must not have parameters. ##
-###########################################
-System.IO.FileSystem.dll Interop
-System.IO.FileSystem.dll <PrivateImplementationDetails>
-System.IO.FileSystem.dll System.IO.File
-System.Security.Cryptography.Algorithms.dll Interop
-System.Security.Cryptography.Algorithms.dll System.Security.Cryptography.MD5
-System.Collections.dll <PrivateImplementationDetails>
-System.Collections.dll System.Collections.Generic.HashSet`1
-System.Collections.dll System.Collections.Generic.Queue`1
-System.Private.Uri.dll <PrivateImplementationDetails>
-System.Private.Uri.dll System.Uri
-System.Private.Xml.dll <PrivateImplementationDetails>
-System.Private.Xml.dll System.Xml.IXmlLineInfo
-System.Private.Xml.dll System.Xml.IXmlNamespaceResolver
-System.Runtime.dll System.Collections.Generic.ISet`1
-System.Runtime.dll System.Reflection.RuntimeReflectionExtensions
-System.ObjectModel.dll System.Collections.ObjectModel.ObservableCollection`1
-System.ObjectModel.dll System.Collections.Specialized.INotifyCollectionChanged
-System.ObjectModel.dll System.Collections.Specialized.NotifyCollectionChangedAction
-System.ObjectModel.dll System.Collections.Specialized.NotifyCollectionChangedEventArgs
-System.ObjectModel.dll System.Collections.Specialized.NotifyCollectionChangedEventHandler
-System.ObjectModel.dll System.ComponentModel.INotifyPropertyChanged
-System.ObjectModel.dll System.ComponentModel.PropertyChangedEventArgs
-System.ObjectModel.dll System.ComponentModel.PropertyChangedEventHandler
-System.ObjectModel.dll System.Windows.Input.ICommand
-System.ComponentModel.dll System.IServiceProvider
-System.Linq.dll System.Linq.Enumerable
-System.Linq.dll System.Linq.EnumerableSorter`1
-System.Linq.dll System.Linq.IIListProvider`1
-System.Linq.dll System.Linq.IOrderedEnumerable`1
-System.Linq.dll System.Linq.IPartition`1
-System.Linq.dll System.Linq.OrderedEnumerable`1
-System.Linq.Expressions.dll System.Linq.Expressions.ExpressionVisitor
-System.Security.Cryptography.Primitives.dll System.Security.Cryptography.HashAlgorithm
mkdir -p %{buildroot}%{_ibc_data_dir}
unzip packaging/ibcdata.zip -d %{buildroot}%{_ibc_data_dir}
mkdir -p %{buildroot}%{_tizen_preload_dir}
-mv packaging/Dotnet.Launcher.preload %{buildroot}%{_tizen_preload_dir}
+mv packaging/10.Dotnet.Launcher.preload %{buildroot}%{_tizen_preload_dir}
%post
mkdir -p /opt/etc/skel/.dotnet