I have a problem with the SQLite.Interop.dll library. I am required to use the x64 and x86 distributions of it. I also need both of them to be copied into an output directory in the
x64/SQLite.Interop.dll
and
x86/SQLite.Interop.dll
folders respectively.
I created a NuGet package with the following .nuspec file:
<?xml version="1.0"?><package ><metadata minClientVersion="2.5"><id>SQLite.Interop</id><version>1.1.18</version><authors>SQLite</authors><owners>That's me</owners><requireLicenseAcceptance>false</requireLicenseAcceptance><description>That's for me.</description><copyright>Copyright 2018</copyright><tags>SQLite Interop ofcMe</tags><dependencies></dependencies></metadata><files><file src="content\x86\SQLite.Interop.dll" target="content\x86\SQLite.Interop.dll" /><file src="content\x64\SQLite.Interop.dll" target="content\x64\SQLite.Interop.dll" /><file src="bin\Debug\x64\SQLite.Interop.dll" target="Build\x64\" /><file src="bin\Debug\x86\SQLite.Interop.dll" target="Build\x86\" /><file src="SQLite.Interop.targets" target="Build\" /></files></package>
And the following SQLite.Interop.targets file:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"><ItemGroup><None Include="@(MSBuildThisFileDirectory)x64\SQLite.Interop.dll"><Link>SQLite.Interop.dll</Link><CopyToOutputDirectory>Always</CopyToOutputDirectory></None><None Include="@(MSBuildThisFileDirectory)x86\SQLite.Interop.dll"><Link>SQLite.Interop.dll</Link><CopyToOutputDirectory>Always</CopyToOutputDirectory></None></ItemGroup></Project>
How do I archive this after the application builds?