问题
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