mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-28 19:38:26 +01:00
make model project portable
This commit is contained in:
@@ -102,6 +102,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using CommonIO;
|
||||
using MediaBrowser.Api.Playback;
|
||||
using MediaBrowser.Common.Implementations.Networking;
|
||||
using MediaBrowser.Common.Implementations.Serialization;
|
||||
using MediaBrowser.Common.Implementations.Updates;
|
||||
using MediaBrowser.Controller.Entities.Audio;
|
||||
@@ -1364,7 +1365,10 @@ namespace MediaBrowser.Server.Startup.Common
|
||||
|
||||
public async Task<List<IPAddress>> GetLocalIpAddresses()
|
||||
{
|
||||
var addresses = NetworkManager.GetLocalIpAddresses().ToList();
|
||||
// Need to do this until Common will compile with this method
|
||||
var nativeNetworkManager = (BaseNetworkManager)NetworkManager;
|
||||
|
||||
var addresses = nativeNetworkManager.GetLocalIpAddresses().ToList();
|
||||
var list = new List<IPAddress>();
|
||||
|
||||
foreach (var address in addresses)
|
||||
|
||||
@@ -4,7 +4,7 @@ using MediaBrowser.Controller.Session;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using MediaBrowser.Common.Threading;
|
||||
using MediaBrowser.Controller.Threading;
|
||||
|
||||
namespace MediaBrowser.Server.Startup.Common.EntryPoints
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>MediaBrowser.Server.Startup.Common</RootNamespace>
|
||||
<AssemblyName>MediaBrowser.Server.Startup.Common</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
|
||||
<TargetFrameworkProfile />
|
||||
|
||||
Reference in New Issue
Block a user