Skip to content

Commit a7fa647

Browse files
jshigetomiJustin Chung
authored andcommitted
Remove runtime identifier and use conditional packages
1 parent b397571 commit a7fa647

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

PSReadLine/PSReadLine.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
1515
<LangVersion>9.0</LangVersion>
1616
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
17-
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
1817
</PropertyGroup>
1918

2019
<ItemGroup>
@@ -25,6 +24,14 @@
2524
<PackageReference Include="Microsoft.Data.Sqlite" Version="9.0.4" />
2625
<PackageReference Include="Microsoft.PowerShell.Pager" Version="1.0.0" />
2726
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="2.1.11" />
27+
28+
<!-- Platform-specific SQLite bundles -->
29+
<!-- Use Windows system SQLite on Windows -->
30+
<PackageReference Include="SQLitePCLRaw.bundle_winsqlite3" Version="2.1.11" Condition="$([MSBuild]::IsOSPlatform('Windows'))" />
31+
<!-- Use embedded SQLite with all native libraries for Linux/macOS -->
32+
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="2.1.11" Condition="!$([MSBuild]::IsOSPlatform('Windows'))" />
33+
34+
<ProjectReference Include="..\Polyfill\Polyfill.csproj" />
2835
</ItemGroup>
2936

3037
<ItemGroup>

0 commit comments

Comments
 (0)