简体   繁体   English

可以将Packages.config隐藏在解决方案资源管理器中吗?

[英]Can packages.config be hidden in Solution Explorer?

I like NuGet, and I like how it so kindly restores my packages. 我喜欢NuGet,也喜欢它如何恢复我的软件包。 However, I'm pretty tired of the packages.config file showing up in the alphabetical listing of my classes in the project root like this: 但是,我非常讨厌在项目根目录中按类的字母顺序显示的packages.config文件,如下所示:

哦,packages.config!你为什么要在这里?

I seem to recall that excluding the file from the project (but leaving it on disk and in source control) will break the ability to restore packages. 我似乎记得,从项目中排除文件(但将其保留在磁盘上和源代码管理中)将破坏恢复软件包的能力。 Is there anything that can be done to bring beauty to the project root? 有什么可以做的才能将美丽带入项目的根源?

The project should restore the packages that installed based on the packages.config file no matter it include in project or not. 无论项目是否包含在项目中,项目都应还原基于packages.config文件安装的软件包。 So You can exclude it. 因此,您可以排除它。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM