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>
25 lines
1.3 KiB
XML
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>
|