【发布时间】:2021-06-21 20:04:17
【问题描述】:
所以我正在使用 C++ 处理一个项目并创建了一个 GUI。我尝试使用 NuGet 来代替包但是,它不断出现此错误:
Could not install package 'MetroModernUI 1.4.0'. 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.
我在这里找到了一个链接来帮助我解决这个问题。然而,第 2 步出现了另一个问题。这是链接和错误:
How can I make my managed NuGet package support C++/CLI projects?
Install failed. Rolling back...
Package 'NuGet.CommandLine.5.8.1' does not exist in project 'Project Name'
Package 'NuGet.CommandLine.5.8.1' does not exist in folder '<path>\packages'
该目录中甚至不存在 Package 文件夹。有人请帮助我,因为在尝试使用 NuGet 代替包时,该错误也出现在上一个错误中,这里是:
Install failed. Rolling back...
Package 'MetroModernUI.1.4.0' does not exist in project 'Project Name'
Package 'MetroModernUI.1.4.0' does not exist in folder '<path>\packages'
【问题讨论】:
标签: .net visual-studio nuget clr nuget-package