Please help me on this. Is it possible to deploy a WSP solution developed in SharePoint 2010 to SharePoint 2007. I know this is very akward question, but right now I am asked this very same question from client.
3 Answers
You cannot install SharePoint 2010 WSP on a SharePoint 2007 environment, because it references the SharePoint 2010 DLL files and the package Product Version is set to 14.0.
If you got the visual studio project, you could try and downgrade the project so that it works for 2007. More information about this can be found on this blog post.
-
1I think you're assuming it has assemblies in it. I think James' answer is more complete. I haven't tried using a package made in visual studio 2010 on a SharePoint 2007 farm, but I have done the other way. Feb 21, 2012 at 19:28
If the WSP has any assemblies in it - no.
The assemblies developed for SharePoint 2010 will be referencing the SharePoint 2010 core assemblies, and will fail when trying to load them in SharePoint 2007.
If the WSP only has XML in it, and no server side code in assemblies, it should deploy fine, given it has no Feature code that's new in 2010 (such as Feature upgrades, or any of the newer attributes that some elements may have).
-
2
-
1
-
1I might be going crazy, but I was able to get the same WSP into 2007 and 2010 just be specifying a no specific version of the Microsoft.SharePoint.dll in the project. Feb 21, 2012 at 18:52
Here are some scripts that can be used to deploy the wsp to MOSS2007 to multiple site collections.
-
This does not answer the question. The PO has asked to deploy a WSP built for SP2010 into a MOSS 2007 farm. Your link explains how to deploy a WSP into multiple site collections.– RussellMay 18, 2012 at 23:11