无法在asp.net中找到System.Web.Optimization [英] Not able to find System.Web.Optimization in asp.net
本文介绍了无法在asp.net中找到System.Web.Optimization的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi,
I am trying to update my visual studio with the latest released Nugget in the Package Manager console but I am getting this error:
Install-Package EntityFramework -Version 6.0.0-alpha2 -Pre
Install-Package : Cannot bind parameter ''Version''. Cannot convert value "6.0.0-alpha2" to type "System.Version". Error: "Input string was
not in a correct format."
At line:1 char:42
+ Install-Package EntityFramework -Version 6.0.0-alpha2 -Pre
+ ~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Install-Package], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,NuGet.PowerShell.Commands.InstallPackageCommand
I am using MS VS 2010 and Microsoft.NET Framework Version 4.5.50709 SP1 Rel and I have win 8 installed on my PC
and the reason I am trying to install is becuase I want to reference a namespace in the Global.asax file which does not found the BundleConfig in the namespace
and when I am trying to reference it from System.Web.Optimization it giving an error.
this is the code I a using in the Global.asax:
namespace WingtipToys
{
public class Global : System.Web.HttpApplication
{
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
BundleConfig.RegisterBundles(BundleTable.Bundles); at this line of code
}
Please can someone help fixing this.
推荐答案
有你试过没有-alpha2
部分?它看起来不是一个有效的版本。
祝你好运!
Have you tried it without the-alpha2
part? It doesn''t look like a valid version otherwise.
Good luck!
这篇关于无法在asp.net中找到System.Web.Optimization的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文