gpt4 book ai didi

c# - 由于缺少 NuGet 引用而无法构建解决方案

转载 作者:太空宇宙 更新时间:2023-11-03 10:25:34 26 4
gpt4 key购买 nike

如标题所说,我无法构建我的解决方案 (C#),因为 NuGet 吐出了这个错误

This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Fody.1.26.1\build\Fody.targets.

当我运行 Get-Package 时,它​​说没有安装包。我该如何摆脱这个(我不再需要这个包裹了)。

谢谢

最佳答案

您不想使用基于项目的 nuget 包还原!

确保您拥有最新的 Nuget 版本(工具 -> 扩展和更新)

当您开始构建项目时,它应该会告诉您它需要下载 nuget 包(或者可能只是自动下载它们)。

编辑不确定反对票是什么:

http://blog.davidebbo.com/2014/01/the-right-way-to-restore-nuget-packages.html

要找到菜单项:“启用 nuget 包还原”,请在解决方案资源管理器中右键单击解决方案 - 而不是项目。

您收到一条消息:

Do you want to configure this solution to download and restore missing NuGet packages during build?

关于c# - 由于缺少 NuGet 引用而无法构建解决方案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31698709/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com