我是 Nugets 安装和 DotLiquid 的新手,在使用 Nugets 安装 DotLiquid 时出现以下错误:
Install failed. Rolling back...
Install-Package : Could not install package 'DotLiquid 2.0.64'. You are trying to install this package into a project that targets
'.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that
framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package DotLiquid
从这里,它说 DotLiquid 确实支持 .NET Framework 4.5,但是我不知道如何“下载 nuget 包”,因为dotliquid 的下载链接只显示超过 4 年的包。
如何解决?
PS。如果我尝试Get-Package DotLiquid
,我会得到这个:
PM> Get-Package DotLiquid
No packages installed.
更新:
我刚刚安装了最新的 NuGet 扩展(并多次重新启动了我的 MS VS),但问题仍然存在。我当前的 NuGet 版本:
Package Manager Console Host Version 2.12.0.817