Can I use .NET 4 with SharePoint 2007?

青春壹個敷衍的年華 提交于 2019-12-20 01:41:09

问题


I'm on a team that's currently building a MOSS 2007 based application (which relies on .NET 2), and we'd like to leverage the Entity Framework v4 (which relies on .NET 4).

Is this possible?


回答1:


No. The 4.0 version of .NET has a new CLR (4.0) etc., but SharePoint 2007 is only supported on CLR 2.0.

Even SP2010 does not support .net 4.0 (yet).




回答2:


Although I haven't tried, my guess is that it's not possible. In order to use .net 4.0 assemblies, the apppool running your moss site would have to be upgraded to the 4.0 version of asp.net. After that, version of system.web and other assemblies will change and I think that moss will simply stop working. But hey, it's just my guess. You can always try it out.




回答3:


No. Even SharePoint 2010 is based on ASP.NET 3.5



来源:https://stackoverflow.com/questions/1889408/can-i-use-net-4-with-sharepoint-2007

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