4

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?

John Berberich
  • 716
  • 6
  • 10
mattblodgett
  • 285
  • 4
  • 11

3 Answers3

8

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).

John Berberich
  • 716
  • 6
  • 10
Colin
  • 10,630
  • 28
  • 36
  • It's bound to happen seeing as VS2010 is going to be the main dev yool for sharepoint. It might take a service pack though :-D. – Colin Dec 12 '09 at 00:21
  • 1
    As it's a new CLR, I'm willing to say that SP2010 will never support it. – Michael Stum Dec 12 '09 at 00:22
  • What's your reason for saying it will never be supported? SP2010 is in beta 1 right now. – John Saunders Dec 12 '09 at 00:23
  • They only way see this actually working, IMO, is to have a 4.0 pool run mss2010 (and that is ALOT of backwards compat-sauce) as said by klaus – Francisco Aquino Dec 12 '09 at 01:46
  • Exactly, it's in Beta, so I doubt that they'll change it over to .net 4.0 CLR. Keep in mind that if they make a change like that, they have to test each and every part for compatibility. It's not just "recompile and ship", but it's to make sure there are no breaking changes. With a codebase that size, I believe that this is not going to happen. Adding .net 4 Support with a Service Pack could break their customers custom solution, and enterprise products don't do that usually. So I don't think we'll see .net 4 support in SP2010 ever. – Michael Stum Dec 14 '09 at 19:55
3

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.

Klaus Byskov Pedersen
  • 117,245
  • 29
  • 183
  • 222
2

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

IrishChieftain
  • 15,108
  • 7
  • 50
  • 91