4

列出我的解决方案中的包

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 用于 Web Update 2 和 NuGet 2.2.40116.9051
  • NuGet GUI 中也未显示包更新。
4

2 回答 2

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 错误,但至少这可能提供一种解决方法。

于 2013-04-22T23:27:09.247 回答
0

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

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

于 2013-04-25T08:35:36.510 回答