简体   繁体   English

从nuget包解析项目程序集引用?

[英]Resolve project assembly references from nuget packages?

I accidentally deleted all the project references after rebuilding a project. 重建项目后,我不小心删除了所有项目引用。
The nuget package manager restored the packages folder, but all the packages' assemblies are not referred to from the project (Project->References). nuget软件包管理器恢复了packages文件夹,但是没有从项目中引用所有软件包的程序集(Project-> References)。

How do I add all nuget packages' assemblies as project references? 如何将所有nuget软件包的程序集添加为项目引用?

I never knew, but when the command update-package -reinstall is called parameterless, it would update all the packages. 我不知道,但是当命令update-package -reinstall称为无参数时,它将更新所有软件包。

Thanks for Matt for his comment . 感谢马特的评论

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 该项目引用了此计算机上没有的NuGet软件包 - The project references NuGet packages that are not on this computer 处理参考和Nuget包 - Dealing with References & Nuget Packages nuget 在发布包时如何处理项目引用? - How does nuget handle project references when publishing packages? 解决方案中的某些项目无法找到对 NuGet 包的系统引用 - Some Project in a solution is unable to find System references to NuGet Packages 从另一个文件夹解析程序集引用 - Resolve assembly references from another folder 将 Nuget 包从一个项目添加到另一个项目 - Adding Nuget Packages From One Project To Another 在同一项目的两台不同 PC 上工作后,引用和 NuGet 包出现问题 - Issue with references and NuGet packages after working on two different PC's on same project 有没有办法让 C# 解决方案在 TFS 构建期间使用本地和 nuget 包时使用项目引用? - Is there a way to have a C# solution use project references when local and nuget packages during TFS builds? 克隆网站项目nuget后还原包,但未找到参考VS 2015 - After clone of web site project nuget restores packages but references are not found VS 2015 Nuget无法管理从git克隆的项目中的引用 - Nuget fails to manage references in a project cloned from git
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM