[英]sqlite3.exe Nuget package installation failure - .NET framework compatibility?
我正在尝试在面向Framework 4.7.2的C#项目中为sqlite3.exe
命令行程序安装Nuget程序包。 该软件包是:
https://www.nuget.org/packages/sqlite3-command-line-shell/
当我在VS2015中尝试此操作时,出现以下错误:
无法安装软件包“ sqlite3-command-line-shell 1.0.1”。 您正在尝试将此软件包安装到以'.NETFramework,Version = v4.7.2'为目标的项目中,但是该软件包不包含任何与该框架兼容的程序集引用或内容文件 。
现在,此软件包实际上仅安装.exe文件 。 没有任何.NET依赖项。 因此,我看不出该错误的原因。
Nuget软件包有问题吗? 还是有我可能错过的解决方案?
NUPKG文件中的NUSPEC文件包含:
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>sqlite3-command-line-shell</id>
<version>1.0.1</version>
<title>sqlite3 command-line shell</title>
<authors>Darren Hale</authors>
<owners>Darren Hale</owners>
<licenseUrl>http://www.sqlite.org/copyright.html</licenseUrl>
<projectUrl>http://www.sqlite.org/index.html</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>The sqlite3 command-line shell program.</description>
<releaseNotes>Version 3.8.10.2 (x86) of sqlite3 command-line shell program.
Removed unnecessary files accidentally included when packing .nuspec file.</releaseNotes>
<copyright>Copyright 2015</copyright>
<tags>sqlite3 cli shell exe</tags>
</metadata>
</package>
我看不到任何有关.NET的内容; 但是我对Nuget包的构造方法知之甚少。
sqlite3.exe在NuGet软件包的根目录中。
看来您正在尝试创建工具NuGet包,类似于NUnit.ConsoleRunner。 可执行文件必须位于NuGet包内的tools目录中。
.nuspec缺少文件部分,例如:
<files>
<file src="sqlite3.exe" target="tools" />
</files>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.