Skip to content

Commit

Permalink
.NET Standard 2.0 does not need PlatformAbstractions (DNET-820, #76 f…
Browse files Browse the repository at this point in the history
…rom @dlichterman).
  • Loading branch information
cincuranet committed Jun 4, 2018
1 parent 5f5c229 commit c32f603
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -34,7 +34,6 @@
<dependency id="System.Threading.Thread" version="4.3.0" />
</group>
<group targetFramework="netstandard2.0">
<dependency id="Microsoft.Extensions.PlatformAbstractions" version="1.1.0" />
<dependency id="System.Reflection.Emit" version="4.3.0" />
</group>
</dependencies>
Expand Down
Expand Up @@ -22,7 +22,7 @@
using System.Diagnostics;
using System.IO;
using System.Reflection;
#if NETSTANDARD1_6 || NETSTANDARD2_0
#if NETSTANDARD1_6
using Microsoft.Extensions.PlatformAbstractions;
#endif
using FirebirdSql.Data.Common;
Expand Down Expand Up @@ -467,8 +467,10 @@ private string GetProcessName()

private string GetHostingPath()
{
#if NETSTANDARD1_6 || NETSTANDARD2_0
#if NETSTANDARD1_6
return PlatformServices.Default.Application.ApplicationBasePath;
#elif NETSTANDARD2_0
return System.AppContext.BaseDirectory;
#else
Assembly assembly;
try
Expand Down
Expand Up @@ -45,7 +45,6 @@
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
<PackageReference Include="Microsoft.Extensions.PlatformAbstractions" Version="1.1.0" />
<PackageReference Include="System.Reflection.Emit" Version="4.3.0" />
</ItemGroup>
</Project>

0 comments on commit c32f603

Please sign in to comment.