Open enricobenedos opened 3 years ago
@bricelam to take a look
Are you using the SQLitePCLRaw.bundle_e_sqlite3
package? Newer versions of PROJ are incompatible with anything besides the system version of SQLite. See Installing SpatiaLite in our docs for how to work around the issue.
Hello @bricelam, I checked the Microsoft guide and now this is my situation:
...
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="5.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite" Version="5.0.6" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.13" />
<PackageReference Include="SQLitePCLRaw.bundle_sqlite3" Version="2.0.4" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
...
Now it works on linux environment using Docker but it does not work anymore locally using Windows 10. Visual studio tell me that no SQLite DLL/bundle was found.
I see that in the documentation project file SQLitePCLRaw.bundle_sqlite3
is used, but you ask me if I'm using SQLitePCLRaw.bundle_e_sqlite3
. Which is the correct one?
It's ugly, but you could...
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.6" />
</ItemGroup>
<ItemGroup Condition="'$(OS)' != 'Windows_NT'">
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="5.0.6" />
<PackageReference Include="SQLitePCLRaw.bundle_sqlite3" Version="2.0.4" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite" Version="5.0.6" />
</ItemGroup>
Note, this requires you to build on the same OS that you're going to run on.
Note, I raised this issue on the SpatiaLite mailing list a while ago, but nobody seemed to care. ☹
Thank you @bricelam for your support. I will try as soon as possibile your csproj file strategy.
I'm sad that SpatiaLite team is not giving so much priority to this issue. It can be an idea to better document this problem on Microsoft docs?
It's ugly, but you could...
<ItemGroup Condition="'$(OS)' == 'Windows_NT'"> <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.6" /> </ItemGroup> <ItemGroup Condition="'$(OS)' != 'Windows_NT'"> <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="5.0.6" /> <PackageReference Include="SQLitePCLRaw.bundle_sqlite3" Version="2.0.4" /> </ItemGroup> <ItemGroup> <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite" Version="5.0.6" /> </ItemGroup>
Note, this requires you to build on the same OS that you're going to run on.
Anyway this workaround works
Hey cool, they've rediscovered the issue for themselves. Maybe we'll see some progress.
Good morning,
we are not able to include our tests suite on the CI process using Docker (Ubuntu 20.04). It seems that there is an issue with SQLite with NetTopologySuite. Locally on Windows 10 with Visual Studio 2019 tests are executed with no issue.
Include stack traces
Include the full exception message and stack trace for any exception you encounter.
Use triple-tick fences for stack traces. For example:
Include version information