File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
nuget/FirebirdSql.Data.FirebirdClient
src/FirebirdSql.Data.FirebirdClient Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 34
34
<dependency id =" System.Threading.Thread" version =" 4.3.0" />
35
35
</group >
36
36
<group targetFramework =" netstandard2.0" >
37
- <dependency id =" Microsoft.Extensions.PlatformAbstractions" version =" 1.1.0" />
38
37
<dependency id =" System.Reflection.Emit" version =" 4.3.0" />
39
38
</group >
40
39
</dependencies >
Original file line number Diff line number Diff line change 22
22
using System . Diagnostics ;
23
23
using System . IO ;
24
24
using System . Reflection ;
25
- #if NETSTANDARD1_6 || NETSTANDARD2_0
25
+ #if NETSTANDARD1_6
26
26
using Microsoft . Extensions . PlatformAbstractions ;
27
27
#endif
28
28
using FirebirdSql . Data . Common ;
@@ -467,8 +467,10 @@ private string GetProcessName()
467
467
468
468
private string GetHostingPath ( )
469
469
{
470
- #if NETSTANDARD1_6 || NETSTANDARD2_0
470
+ #if NETSTANDARD1_6
471
471
return PlatformServices . Default . Application . ApplicationBasePath ;
472
+ #elif NETSTANDARD2_0
473
+ return System . AppContext . BaseDirectory ;
472
474
#else
473
475
Assembly assembly ;
474
476
try
Original file line number Diff line number Diff line change 45
45
</ItemGroup >
46
46
47
47
<ItemGroup Condition =" '$(TargetFramework)'=='netstandard2.0'" >
48
- <PackageReference Include =" Microsoft.Extensions.PlatformAbstractions" Version =" 1.1.0" />
49
48
<PackageReference Include =" System.Reflection.Emit" Version =" 4.3.0" />
50
49
</ItemGroup >
51
50
</Project >
You can’t perform that action at this time.
0 commit comments