NuGet强制安装忽略版本
本文关键字:版本 安装 NuGet | 更新日期: 2023-09-27 18:11:35
NPM的家伙,不熟悉NuGet的东西
我试着
Install-Package UnmanagedExports
,
Installing 'UnmanagedExports 1.2.6'.
Successfully installed 'UnmanagedExports 1.2.6'.
Adding 'UnmanagedExports 1.2.6' to my-project.
Uninstalling 'UnmanagedExports 1.2.6'.
Successfully uninstalled 'UnmanagedExports 1.2.6'.
Install failed. Rolling back...
Install-Package : Could not install
Install-Package : Could not install package 'UnmanagedExports 1.2.6'. You are trying to install this package
into a project that targets '.NETCore,Version=v4.5.1', 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:2
+ Install-Package UnmanagedExports
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
可能这个库只是没有赶上指示最新的。net版本,我希望如此,因此我将强制安装。
你能告诉我怎么做吗?
我解压缩了nupkg
,并调查了内容,但没有线索。谢谢。
sdfsd
好,版本混乱。我现在使用的是VS.net 2012。VS.net 2010 express一般不支持nuget