From bda49dfffbcd8450d9b9c578361d8f44fb1b855c Mon Sep 17 00:00:00 2001 From: WonYoung Choi Date: Thu, 12 Jan 2017 10:17:04 +0900 Subject: Remove NET45 code Change-Id: I90202d17b86d0e6e8449048367d422a790fff589 --- Xamarin.Forms.Platform.Tizen/Forms.cs | 2 -- Xamarin.Forms.Platform.Tizen/ResourcePath.cs | 15 --------------- Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs | 2 -- 3 files changed, 19 deletions(-) (limited to 'Xamarin.Forms.Platform.Tizen') diff --git a/Xamarin.Forms.Platform.Tizen/Forms.cs b/Xamarin.Forms.Platform.Tizen/Forms.cs index 453bab82..da2d98d3 100644 --- a/Xamarin.Forms.Platform.Tizen/Forms.cs +++ b/Xamarin.Forms.Platform.Tizen/Forms.cs @@ -126,7 +126,6 @@ namespace Xamarin.Forms.Platform.Tizen //TO-DO: Need to change to Tizen. Device.OS = TargetPlatform.Other; -#if !NET45 // 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. @@ -147,7 +146,6 @@ namespace Xamarin.Forms.Platform.Tizen } } } -#endif Device.PlatformServices = new TizenPlatformServices(); ; if (Device.info != null) diff --git a/Xamarin.Forms.Platform.Tizen/ResourcePath.cs b/Xamarin.Forms.Platform.Tizen/ResourcePath.cs index d2387793..918a4794 100644 --- a/Xamarin.Forms.Platform.Tizen/ResourcePath.cs +++ b/Xamarin.Forms.Platform.Tizen/ResourcePath.cs @@ -1,7 +1,4 @@ using System.IO; -#if NET45 -using System.Reflection; -#endif using AppFW = Tizen.Applications; @@ -26,18 +23,6 @@ namespace Xamarin.Forms.Platform.Tizen } } -#if NET45 - string exedir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); - // ind resource in "exepath/../res/" - { - string resPath = exedir + "/../res/" + res; - if (File.Exists(resPath)) - { - return resPath; - } - } -#endif - return res; } } diff --git a/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs b/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs index db7ee1de..bb7183a9 100644 --- a/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs +++ b/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs @@ -192,7 +192,6 @@ namespace Xamarin.Forms.Platform.Tizen #endregion -#if !NET45 // In .NETCore, AppDomain is not supported. The list of the assemblies should be generated manually. internal class AppDomain { @@ -226,7 +225,6 @@ namespace Xamarin.Forms.Platform.Tizen return _assemblies.ToArray(); } } -#endif } } -- cgit v1.2.3