Skip to content

Commit bdbf5cf

Browse files
committed
fix(build): copy SQLite.Interop.dll
1 parent 42f64de commit bdbf5cf

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

source/RevitDevTool/RevitDevTool.csproj

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,17 @@
7676
<PackageReference Include="System.Text.Json" Version="8.0.6" Condition="$(DefineConstants.Contains('NETFRAMEWORK'))" />
7777
</ItemGroup>
7878

79-
<ItemGroup Condition="!$(DefineConstants.Contains('NETFRAMEWORK'))">
80-
<Content Include="bin\$(Configuration)\runtimes\win-x64\native\SQLite.Interop.dll">
81-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
82-
<Link>SQLite.Interop.dll</Link>
83-
</Content>
84-
</ItemGroup>
85-
86-
<ItemGroup Condition="$(DefineConstants.Contains('NETFRAMEWORK'))">
87-
<Content Include="bin\$(Configuration)\x64\SQLite.Interop.dll">
88-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
89-
<Link>SQLite.Interop.dll</Link>
90-
</Content>
91-
</ItemGroup>
79+
<!-- Copy SQLite.Interop.dll -->
80+
<Target Name="CopySQLiteInterop" AfterTargets="Build">
81+
<Copy Condition="!$(DefineConstants.Contains('NETFRAMEWORK')) AND Exists('$(OutputPath)runtimes\win-x64\native\SQLite.Interop.dll')"
82+
SourceFiles="$(OutputPath)runtimes\win-x64\native\SQLite.Interop.dll"
83+
DestinationFiles="$(OutputPath)SQLite.Interop.dll"
84+
SkipUnchangedFiles="true" />
85+
<Copy Condition="$(DefineConstants.Contains('NETFRAMEWORK')) AND Exists('$(OutputPath)x64\SQLite.Interop.dll')"
86+
SourceFiles="$(OutputPath)x64\SQLite.Interop.dll"
87+
DestinationFiles="$(OutputPath)SQLite.Interop.dll"
88+
SkipUnchangedFiles="true" />
89+
</Target>
9290

9391
<ItemGroup>
9492
<Resource Include="Resources\Icons\TraceGeometry32_dark.tiff" />

0 commit comments

Comments
 (0)