简体   繁体   English

您在哪个文件中为.NET Core项目设置nuget包?

[英]In which file do you set nuget packages for a .NET Core project?

I found something called "MyProjectName.deps.json" in the "bin" directory. 我在“ bin”目录中找到了一个名为“ MyProjectName.deps.json”的东西。 But if i delete the "bin" directory and build my project again it gets created again. 但是,如果我删除“ bin”目录并再次构建我的项目,它将再次创建。 Where does VisualStudio pull this data from (which packages should be included in the project)? VisualStudio从何处提取此数据(项目中应包含哪些软件包)?

这基于obj\\project.assets.json文件(由NuGet恢复生成),该文件定义了用于生成.deps.json文件的生成逻辑的输入以及项目文件中的其他引用。

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

相关问题 .Net Core项目Nuget软件包无法还原 - .Net Core project Nuget Packages Can not restore 无法在空白的ASP.NET核心项目中添加nuget包 - unable to add nuget packages in blank ASP.NET core project 无法在 .net 核心中使用本地 nuget 包 - Unable to use local nuget packages in .net core asp.net核心项目中的nuget.config文件 - nuget.config file in asp.net core project 使用旧解决方案将nuget包添加到.net核心项目时如何修复$(NETStandardImplicitPackageVersion)错误? - How to fix $(NETStandardImplicitPackageVersion) error when adding nuget packages to .net core project with older solution? .NET Core c# 项目 - 所有 nuget 包都位于何处? - .NET Core c# Project - where does all nuget packages are located? ASP.Net Core-在项目中哪里可以找到Nuget软件包的安装列表 - ASP.Net Core - Where to find the Nuget packages installed list in the project 如何在vs2017软件(以及asp.net核心项目)中从nuget查找和使用下载的软件包? - How to find and use downloaded packages from nuget in vs2017 software (and in an asp.net core project)? 一个 ASP.NET Core 6 应用部分项目必须引用哪些 Nuget 包 - What Nuget packages must be referenced by an ASP.NET Core 6 application parts project 如何防止安装不是 100%.Net Core 2.0 兼容的 nuget 软件包? - How do I prevent installing nuget packages that aren't 100% .Net Core 2.0 compatible?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM