Files
swarm-assistent/SwarmAssistentExtension.csproj
T
Leonid PershinandCursor d29436c944 Ship Assistent 0.13.1: compile 0.13.0 so the SwarmUI tab loads.
Add missing WebSocket/HttpClient usings, stop using static on Config/FilePath helpers, and copy Microsoft.Data.Sqlite next to the extension dll.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-22 15:14:31 +03:00

25 lines
1.3 KiB
XML

<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<AssemblyName>SwarmAssistentExtension</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Data.Sqlite" Version="8.0.11" />
</ItemGroup>
<Import Project="../../SwarmUI.extension.props" />
<!-- Must come after the import: SwarmUI.extension.props disables it, but the Sqlite
assemblies have to sit next to the extension dll for SwarmExtensionLoadContext
to resolve them as private deps. -->
<PropertyGroup>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<!-- Everything else in the lock file is already loaded by the SwarmUI host. -->
<Target Name="ShipOnlySqlitePrivateDeps" AfterTargets="ResolveReferences">
<ItemGroup>
<ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)"
Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)' != 'Microsoft.Data.Sqlite'
AND '%(ReferenceCopyLocalPaths.NuGetPackageId)' != 'Microsoft.Data.Sqlite.Core'
AND !$([System.String]::Copy('%(ReferenceCopyLocalPaths.NuGetPackageId)').StartsWith('SQLitePCLRaw'))" />
</ItemGroup>
</Target>
</Project>