简体   繁体   中英

Can packages.config be hidden in Solution Explorer?

I like NuGet, and I like how it so kindly restores my packages. 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!你为什么要在这里?

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. So You can exclude it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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