How do I find the right NuGet package for my framework version

与世无争的帅哥 提交于 2019-12-24 16:25:03

问题


I need the Microsoft ASP.Net Web Pages NuGet package, but I need the version which targets .net 4.0 How do I figure this out? Is there a way to figure this out for any given NuGet Package?


回答1:


The later versions of the Microsoft.AspNet.WebPages NuGet package only support .NET 4.5

The older version 2.0.30506.0 supports .NET 4.0

To figure this out I used the NuGet Package Explorer, displayed the list of package versions and opened a few of the NuGet packages to see what .NET frameworks they support. As far as I am aware you cannot get the supported .NET frameworks from the metadata returned by the nuget.org OData feed. The only way I know is to look inside the NuGet package itself.



来源:https://stackoverflow.com/questions/22975738/how-do-i-find-the-right-nuget-package-for-my-framework-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!