how to install an older version of package via NuGet?
2016-06-08 14:23
597 查看
转载 http://stackoverflow.com/questions/10206090/how-to-install-an-older-version-of-package-via-nuget
![](http://www.cnblogs.com/baozhu/p/file:/C:/Users/xurui/AppData/Roaming/Tencent/Users/844347681/QQ/WinTemp/RichOle/%]P1%CIE))7AMZ(%60%7DX48)3Y.png)
ry the following:
![](http://www.cnblogs.com/baozhu/p/file:/C:/Users/xurui/AppData/Roaming/Tencent/Users/844347681/QQ/WinTemp/RichOle/%]P1%CIE))7AMZ(%60%7DX48)3Y.png)
ry the following:
Uninstall-Package Newtonsoft.Json -Forcefollowed by:
Install-Package Newtonsoft.Json -Version <press tab key for autocomplete>
twitterizer uses Newtonsoft.Json, I have to install older without uninstall newer. PM> Uninstall-Package Newtonsoft.Json Uninstall-Package : Unable to uninstall 'Newtonsoft.Json 4.0.8' because 'twitterizer 2.4.0.26532' depends on it. – Nebide Yildiz Apr 19 '12 at 5:41 | |||
You didn't mention existing dependencies to the package so I was unware of that: try adding the -Force switch to the uninstall-package command (as edited above) – Xavier Decoster Apr 19 '12 at 8:16 | |||
Sorry for my missing. -Force worked and I installed the older one. Thank you so much. – Nebide Yildiz Apr 19 '12 at 8:25 | |||
when uninstalling EntityFramework 6 beta to downgrade to version 5 I kept getting messages telling me to restart VS to complete uninstall but doing so didn't remove the message. I just went into packages folder and deleted the remaining empty tree structure from there and it was then successful – Simon_Weaver Apr 26 '13 at 3:31 | |||
@Simon_Weaver I suspect the EF 6 pkg is doing something that causes this (noticed some AppDomain code for instance in the PowerShell scripts, so likely VS is holding on to some of the dll's) – Xavier Decoster |
相关文章推荐
- 网络LED矩阵显示器
- 位运算
- 那些未被收录的页面,还有必要提交死链?
- 程序员该何去何从?
- 理解HTTP幂等性
- Competitor Heap Limit
- SwipeView和page
- Python-面向对象编程
- Android Studio 和SVN进行关联
- 人生,选择面对!
- [转] 大型网站架构系列:负载均衡详解(4)
- QXlsx读写excel
- [转] 大型网站架构系列:负载均衡详解(3)
- Win2008 R2 64Bit下IIS环境安装memcache和memcached服务端的方法
- Runtime简单粗暴理解
- 初始化 Gradle 工程目录(转自: 隔叶黄莺 Unmi Blog)
- 【腾讯内部干货分享】分析Dalvik字节码进行减包优化
- confluence与jira账号对接、查看到期时间及问题总结
- Android Studio代码混淆插件
- 初识ssh