summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Forms.cs
diff options
context:
space:
mode:
authorWonYoung Choi <wy80.choi@samsung.com>2017-03-30 14:07:25 +0900
committerWonYoung Choi <wy80.choi@samsung.com>2017-03-30 15:01:53 +0900
commit2b763c44fdfa89b8f8f28f3d5e37682d6ead0430 (patch)
tree5aabbfcff344fa2593feb9d1175ba29248240374 /Xamarin.Forms.Platform.Tizen/Forms.cs
parent8e757e12b8a99c99ae65fa2acc46861716d84096 (diff)
downloadxamarin-forms-2b763c44fdfa89b8f8f28f3d5e37682d6ead0430.tar.gz
xamarin-forms-2b763c44fdfa89b8f8f28f3d5e37682d6ead0430.tar.bz2
xamarin-forms-2b763c44fdfa89b8f8f28f3d5e37682d6ead0430.zip
Register assemblies recursively
Change-Id: I76d2c053883d84fb603d0fd10aefcb6322f2d126
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Forms.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Forms.cs19
1 files changed, 2 insertions, 17 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Forms.cs b/Xamarin.Forms.Platform.Tizen/Forms.cs
index 177b8c55..76571189 100644
--- a/Xamarin.Forms.Platform.Tizen/Forms.cs
+++ b/Xamarin.Forms.Platform.Tizen/Forms.cs
@@ -159,23 +159,8 @@ namespace Xamarin.Forms.Platform.Tizen
// In .NETCore, AppDomain feature is not supported.
// The list of assemblies returned by AppDomain.GetAssemblies() method should be registered manually.
// The assembly of the executing application and referenced assemblies of it are added into the list here.
- Assembly asm = application.GetType().GetTypeInfo().Assembly;
- TizenPlatformServices.AppDomain.CurrentDomain.RegisterAssembly(asm);
- foreach (var refName in asm.GetReferencedAssemblies())
- {
- if (!refName.Name.StartsWith("System.") && !refName.Name.StartsWith("Microsoft."))
- {
- try
- {
- Assembly refAsm = Assembly.Load(refName);
- TizenPlatformServices.AppDomain.CurrentDomain.RegisterAssembly(refAsm);
- }
- catch
- {
- Log.Warn("Reference Assembly can not be loaded. {0}", refName.FullName);
- }
- }
- }
+ // TODO: AppDomain is comming back in NETStandard2.0. This logic should be changed at that time.
+ TizenPlatformServices.AppDomain.CurrentDomain.RegisterAssemblyRecursively(application.GetType().GetTypeInfo().Assembly);
Device.PlatformServices = new TizenPlatformServices(); ;
if (Device.info != null)