【发布时间】:2020-02-23 13:08:15
【问题描述】:
Install-Package : Could not install package 'Newtonsoft.Json 12.0.2'. You are trying to install this
package into a project that targets 'native,Version=v0.0', 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 Newtonsoft.Json
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.
Instal
【问题讨论】:
-
确保控制台窗口指向正确的解决方案。
-
您好,您的项目类型是什么? C++/CLI 项目?
-
参见Github/nuget/#8195...如果您尝试将一个 nuget 包安装到 CLL/CLI 项目中,这是预期的行为,因为现在不支持这种情况:(
标签: json.net nuget visual-studio-2019