Skip to content

Commit 802457f

Browse files
committed
switch to different nuget
1 parent acfdb09 commit 802457f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/FirefoxBookmarkLoader.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Flow.Launcher.Plugin.BrowserBookmark.Models;
2+
using Microsoft.Data.Sqlite;
23
using System;
34
using System.Collections.Generic;
4-
using System.Data.SQLite;
55
using System.IO;
66
using System.Linq;
77

@@ -33,11 +33,11 @@ protected static List<Bookmark> GetBookmarksFromPath(string placesPath)
3333

3434
// create the connection string and init the connection
3535
string dbPath = string.Format(dbPathFormat, placesPath);
36-
using var dbConnection = new SQLiteConnection(dbPath);
36+
using var dbConnection = new SqliteConnection(dbPath);
3737
// Open connection to the database file and execute the query
3838
dbConnection.Open();
39-
var reader = new SQLiteCommand(queryAllBookmarks, dbConnection).ExecuteReader();
40-
39+
var reader = new SqliteCommand(queryAllBookmarks, dbConnection).ExecuteReader();
40+
4141
// return results in List<Bookmark> format
4242
bookmarkList = reader.Select(
4343
x => new Bookmark(x["title"] is DBNull ? string.Empty : x["title"].ToString(),
@@ -133,7 +133,7 @@ Current profiles.ini structure example as of Firefox version 69.0.1
133133

134134
public static class Extensions
135135
{
136-
public static IEnumerable<T> Select<T>(this SQLiteDataReader reader, Func<SQLiteDataReader, T> projection)
136+
public static IEnumerable<T> Select<T>(this SqliteDataReader reader, Func<SqliteDataReader, T> projection)
137137
{
138138
while (reader.Read())
139139
{

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Library</OutputType>
@@ -56,14 +56,14 @@
5656
</ItemGroup>
5757

5858
<ItemGroup>
59-
<PackageReference Include="System.Data.SQLite" Version="1.0.118" />
59+
<Compile Remove="Bookmark.cs" />
6060
</ItemGroup>
6161

6262
<ItemGroup>
63-
<Compile Remove="Bookmark.cs" />
63+
<PackageReference Include="Microsoft.Data.Sqlite" Version="7.0.10" />
6464
</ItemGroup>
6565

66-
<Target Name="CopyDLLs" AfterTargets="Build">
66+
<!--<Target Name="CopyDLLs" AfterTargets="Build">
6767
<Message Text="Executing CopyDLLs task" Importance="High" />
6868
<Copy SourceFiles="$(TargetDir)\runtimes\win-x64\native\SQLite.Interop.dll" DestinationFolder="$(TargetDir)\x64" />
6969
<Copy SourceFiles="$(TargetDir)\runtimes\win-x86\native\SQLite.Interop.dll" DestinationFolder="$(TargetDir)\x86" />
@@ -72,6 +72,6 @@
7272
<Target Name="DeleteRuntimesFolder" AfterTargets="CopyDLLs">
7373
<Message Text="Deleting runtimes folder" Importance="High" />
7474
<RemoveDir Directories="$(TargetDir)\runtimes" />
75-
</Target>
75+
</Target>-->
7676

7777
</Project>

0 commit comments

Comments
 (0)