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 3434 <dependency id =" System.Threading.Thread" version =" 4.3.0" />
3535 </group >
3636 <group targetFramework =" netstandard2.0" >
37- <dependency id =" Microsoft.Extensions.PlatformAbstractions" version =" 1.1.0" />
3837 <dependency id =" System.Reflection.Emit" version =" 4.3.0" />
3938 </group >
4039 </dependencies >
Original file line number Diff line number Diff line change 2222using System . Diagnostics ;
2323using System . IO ;
2424using System . Reflection ;
25- #if NETSTANDARD1_6 || NETSTANDARD2_0
25+ #if NETSTANDARD1_6
2626using Microsoft . Extensions . PlatformAbstractions ;
2727#endif
2828using FirebirdSql . Data . Common ;
@@ -467,8 +467,10 @@ private string GetProcessName()
467467
468468 private string GetHostingPath ( )
469469 {
470- #if NETSTANDARD1_6 || NETSTANDARD2_0
470+ #if NETSTANDARD1_6
471471 return PlatformServices . Default . Application . ApplicationBasePath ;
472+ #elif NETSTANDARD2_0
473+ return System . AppContext . BaseDirectory ;
472474#else
473475 Assembly assembly ;
474476 try
Original file line number Diff line number Diff line change 4545 </ItemGroup >
4646
4747 <ItemGroup Condition =" '$(TargetFramework)'=='netstandard2.0'" >
48- <PackageReference Include =" Microsoft.Extensions.PlatformAbstractions" Version =" 1.1.0" />
4948 <PackageReference Include =" System.Reflection.Emit" Version =" 4.3.0" />
5049 </ItemGroup >
5150</Project >
You can’t perform that action at this time.
0 commit comments