更新NuGet包:当前包源没有可用的包更新

时间:2013-04-22 14:54:48

标签: nuget t4mvc

在我的解决方案中列出包

PM> Get-Package

Id                             Version              Description/Release Notes                                                                                                                                                       
--                             -------              -------------------------                                                                                                                                                       
...
T4MVC                          3.2.0                T4MVC is a T4 template that generates strongly typed helpers for ASP.NET MVC.                                                                                                   
T4MVCExtensions                3.2.0                Runtime helpers used by code generated by T4MVC                
...

检查可用的T4MVC版本:

PM> Get-Package -ListAvailable -Filter T4MVC

Id                             Version              Description/Release Notes                                                                                                                                                       
--                             -------              -------------------------                                                                                                                                                       
...
T4MVC                          3.5.3                T4MVC is a T4 template that generates strongly typed helpers for ASP.NET MVC.                                                                                                   
T4MVCExtensions                3.5.3                Runtime helpers used by code generated by T4MVC                                                                                                                                 
...

尝试更新:

PM> Get-Package -Updates
No package updates are available from the current package source.   

我的安装有什么问题?

更新

  • 我使用VS Express 2012 for Web Update 2和NuGet 2.2.40116.9051
  • 包更新也未在NuGet GUI中显示。

2 个答案:

答案 0 :(得分:0)

当我尝试测试解决方案时,我实际上看到了和你一样的东西。但在清理我的解决方案并重新启动VS后,它开始正常工作。

PM> Get-Package -Updates

Id                             Version              Description/Release Notes                                                                                                                                                                                             
--                             -------              -------------------------                                                                                                                                                                                             
EntityFramework                5.0.0                Entity Framework is Microsoft's recommended data access technology for new applications.                                                                                                                              
jQuery                         2.0.0                jQuery is a new kind of JavaScript Library....                                                                                                                                                                        
jQuery.UI.Combined             1.10.2               jQuery UI is an open source library of interface components — interactions, full-featured widgets, and animation effects — based on the stellar jQuery javascript library . Each component is built according to jQ...
jQuery.Validation              1.11.1               This jQuery plugin makes simple clientside form validation trivial, while offering lots of option for customization. That makes a good choice if you’re building something new from scratch, but also when you’re t...
Modernizr                      2.6.2                Modernizr adds classes to the <html> element which allow you to target specific browser functionality in your stylesheet. You don't actually need to write any Javascript to use it....                               
T4MVC                          3.5.4                T4MVC is a T4 template that generates strongly typed helpers for ASP.NET MVC.                                                                                                                                         
T4MVCExtensions                3.5.4                Runtime helpers used by code generated by T4MVC                                                                                                                                                                       

所以我不确定这笔交易是什么,它可能是一个NuGet错误,但至少可能提供一个解决方法。

答案 1 :(得分:0)

这似乎是NuGet中的一个错误,这是来自其他人的错误报告: http://nuget.codeplex.com/workitem/3289

解决方法很简单:更新适用于单个项目,而不适用于解决方案。