views:

61

answers:

3

I have seen in this TechNet article where SharePoint supports .NET 3.5. I've looked to see if SharePoint requires .NET 3.5 and it appears that it only requires .NET 3.0, even with SP1 or SP2.

Can anyone confirm that SharePoint only requires .NET 3.0 regardless of what service pack you have?

Also, is there a recommended approach for detecting the presence of .NET 3.5? My typical approach is to have a method that accesses a .NET 3.5 assembly and the JIT of that method will fail when I call the method if the assembly cannot be loaded.

+2  A: 

Only .NET 3.0 is required (obviously the service packs are recommended). This version had only just been released when SharePoint 2007 came out:

I think your detection method will work although if an exception is raised you could get some performance problems. You could use this approach asked in another SO question or just check System.Environment.Version.ToString().

Alex Angas
Thanks for confirming my suspicions and providing the approach to detect the version!
Kirk Liemohn
I was able to successfully use the registry approach you provided the link to, but couldn't use the version of mscorlib which was also mentioned in that link. I wasn't able to use System.Environment.Version.ToString().
Kirk Liemohn
+1  A: 

Even though I haven't seen any official documents regarding this, I have worked with many server installations that are running SharePoint/MOSS SP2 on .NET Framework v3.0 (and not v3.5) without any issues.

If it were the case that WSS SP2 required .NET Framework 3.5, I'm pretty sure that both the documentation would reflect this, and the installer would check for this requirement as well.

Magnus Johansson
Thanks for confirming my suspicions.
Kirk Liemohn
A: 

Only .net 3.0 is required, even with SP2. SharePoint of course supports .net 3.5 if you want (after all, both 3.0 and 3.5 are still "only" the .net 2.0 runtime with some additional libraries), but it's not required.

See also the System Requirements for WSS 3.0, which are mostly identical with the ones for Sharepoint in that area.

Michael Stum