Nuget Packages exclude version in folder naming

北城以北 提交于 2019-12-08 19:16:23

问题


currently i have a project that has nuget packages that are placed in folders according to their different version number

Example packages/EntityFramework.4.1.10331.0/..

Is there a way to update the packages and have the folders renamed to exclude the version numbers i.e for the above we have packages/EntityFramework/


回答1:


Currently, NuGet doesn't support installing packages without their version number. There's a work item tracking this here: Issue #1522. Please comment/vote to bump the priority.

One way to help with many related scenarios is to enable NuGet Package Restore.




回答2:


Yes http://docs.nuget.org/docs/reference/command-line-reference

ExcludeVersion If set, the destination folder will contain only the package name, not the version number



来源:https://stackoverflow.com/questions/11328516/nuget-packages-exclude-version-in-folder-naming

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!