Browse Source

Fix errors and assembly name

Bond_009 6 years ago
parent
commit
9ccc259c99
2 changed files with 2 additions and 1 deletions
  1. 1 0
      Jellyfin.Server/Jellyfin.Server.csproj
  2. 1 1
      Jellyfin.Server/Program.cs

+ 1 - 0
Jellyfin.Server/Jellyfin.Server.csproj

@@ -1,6 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 
   <PropertyGroup>
+    <AssemblyName>jellyfin</AssemblyName>
     <OutputType>Exe</OutputType>
     <TargetFramework>netcoreapp2.1</TargetFramework>
     <GenerateAssemblyInfo>false</GenerateAssemblyInfo>

+ 1 - 1
Jellyfin.Server/Program.cs

@@ -134,7 +134,7 @@ namespace Jellyfin.Server
                 Environment.SetEnvironmentVariable("JELLYFIN_LOG_DIR", logDir);
             }
 
-            string appPath = Assembly.GetEntryAssembly().Location;
+            string appPath = AppContext.BaseDirectory;
 
             return new ServerApplicationPaths(programDataPath, appPath, appPath, logDir);
         }