diff --git a/PlatformSystems/ANX.PlatformSystem.Linux/LinuxContentManager.cs b/PlatformSystems/ANX.PlatformSystem.Linux/LinuxContentManager.cs index 2fe865d4..3a2ad56c 100644 --- a/PlatformSystems/ANX.PlatformSystem.Linux/LinuxContentManager.cs +++ b/PlatformSystems/ANX.PlatformSystem.Linux/LinuxContentManager.cs @@ -13,7 +13,7 @@ namespace ANX.PlatformSystem.Linux #region MakeRootDirectoryAbsolute public string MakeRootDirectoryAbsolute(string relativePath) { - var location = Assembly.GetExecutingAssembly().Location; + var location = Assembly.GetEntryAssembly().Location; var assemblyFile = new FileInfo(location); return Path.Combine(assemblyFile.Directory.FullName, relativePath); } diff --git a/PlatformSystems/ANX.PlatformSystem.PsVita/PsVitaContentManager.cs b/PlatformSystems/ANX.PlatformSystem.PsVita/PsVitaContentManager.cs index cb129b91..32f557b0 100644 --- a/PlatformSystems/ANX.PlatformSystem.PsVita/PsVitaContentManager.cs +++ b/PlatformSystems/ANX.PlatformSystem.PsVita/PsVitaContentManager.cs @@ -13,7 +13,7 @@ namespace ANX.PlatformSystem.PsVita #region MakeRootDirectoryAbsolute public string MakeRootDirectoryAbsolute(string relativePath) { - var location = Assembly.GetExecutingAssembly().Location; + var location = Assembly.GetEntryAssembly().Location; var assemblyFile = new FileInfo(location); return Path.Combine(assemblyFile.Directory.FullName, relativePath); } diff --git a/PlatformSystems/ANX.PlatformSystem.Windows/WindowsContentManager.cs b/PlatformSystems/ANX.PlatformSystem.Windows/WindowsContentManager.cs index ce0322ee..b6b79a0b 100644 --- a/PlatformSystems/ANX.PlatformSystem.Windows/WindowsContentManager.cs +++ b/PlatformSystems/ANX.PlatformSystem.Windows/WindowsContentManager.cs @@ -13,7 +13,7 @@ namespace ANX.PlatformSystem.Windows #region MakeRootDirectoryAbsolute public string MakeRootDirectoryAbsolute(string relativePath) { - var location = Assembly.GetExecutingAssembly().Location; + var location = Assembly.GetEntryAssembly().Location; var assemblyFile = new FileInfo(location); return Path.Combine(assemblyFile.Directory.FullName, relativePath); }