Skip to content

Commit 9a31dfc

Browse files
committed
Added special slip for .NET 4.8 on Windows.
1 parent 5805d6e commit 9a31dfc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

PowerSync/PowerSync.Common/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.0.1-dev.1
1+
## 0.0.1-dev.2
22

33
- Introduce package. Framework support for .NET in non-UI use cases.
44

PowerSync/PowerSync.Common/Utils/PowerSyncPathResolver.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ public static class PowerSyncPathResolver
66
{
77
public static string GetNativeLibraryPath(string packagePath)
88
{
9+
10+
// .NET Framework 4.8 on Windows requires a different path (not supporting versions prior to this)
11+
if (RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework 4.8") && RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
12+
{
13+
return Path.Combine(AppContext.BaseDirectory, "powersync.dll");
14+
}
15+
916
string rid = GetRuntimeIdentifier();
1017
string nativeDir = Path.Combine(packagePath, "runtimes", rid, "native");
1118

0 commit comments

Comments
 (0)