Skip to content

Commit 75b11b0

Browse files
committed
Workaround to SQLite bug
1 parent 1b2040b commit 75b11b0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/NHibernate.Test/NHibernate.Test.csproj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,22 @@
8383
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
8484
</Content>
8585
</ItemGroup>
86+
87+
<PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp2.0'">
88+
<CopySQLiteInteropFiles>false</CopySQLiteInteropFiles>
89+
<SQLitePlatformPrefix Condition="$([MSBuild]::IsOsPlatform(Linux))">linux-</SQLitePlatformPrefix>
90+
<SQLitePlatformPrefix Condition="$([MSBuild]::IsOsPlatform(OSX))">osx-</SQLitePlatformPrefix>
91+
<SQLitePlatformArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().ToLower())</SQLitePlatformArchitecture>
92+
</PropertyGroup>
93+
94+
<ItemGroup Condition=" '$(NuGetPackageRoot)'!='' And '$(TargetFramework)'=='netcoreapp2.0'">
95+
<NativeBinaries Include="$(NuGetPackageRoot)system.data.sqlite.core\1.0.109\build\netstandard2.0\$(SqlitePlatformPrefix)$(SqlitePlatformArchitecture)\*.*" />
96+
<Content Include="@(NativeBinaries)">
97+
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
98+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
99+
</Content>
100+
</ItemGroup>
101+
86102
<ItemGroup>
87103
<ProjectReference Include="..\NHibernate.DomainModel\NHibernate.DomainModel.csproj" />
88104
<ProjectReference Include="..\NHibernate\NHibernate.csproj" />

0 commit comments

Comments
 (0)