I have a Nuget package containing test helper classes that I want to share between solutions. When I try to add the package, I get this message:
install-package : Failed to add reference to 'SQLite.Interop'.
At line:1 char:1
+ install-package 'c:\work\directory_name\package_name.nu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
My Nuget package has a C# test helper project with references to
- System.Data
- System.Data.DataSetExtensions
- System.Data.SQLite
packages.config contains
<package id="System.Data.SQLite" version="1.0.65" targetFramework="net451" />
The .NET project includes
SQLite.Interop.dll as a file
BuildAction: None
Copy to Output Directory: Copy always
SQLite.Interop.dll is included in the Nuget package.
It goes without saying that there are no references to SQLite.Interop in either the test helper project (which is in the Nuget package) or the project I am trying to add the Nuget package to.
I am using a nuspec file with nuget pack
to create the package.
Here is the nuspec file definition:
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>...</id>
<version>1.0.0</version>
<title>...</title>
<authors>...</authors>
<owners>..</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>...</description>
<copyright>...</copyright>
<releaseNotes>
</releaseNotes>
</metadata>
<files>
<file src="build\bin\**" target="lib\net45" />
<file src="package_name.targets" target="build"/>
</files>
</package>
There is no .sdf file in the project
Any ideas on how to set up this Nuget package, so I can add it to other projects and have SQLite.Interop.dll copied into their output directories?