Migrating Code from MOSS 2007 to SharePoint 2010
There is a lot of buzz in the market to move towards new and exciting SharePoint 2010. Same is the headache for SharePoint developers how to move the code to new structure.
Two tools are popularly used in the market to build WSPs are
- WSPBuilder
- Visual Studio templates for SharePoint 2010
WSPBuilder was popular tool with MOSS 2007 developers, but it’s author hasn’t updated since long. Last release was on January 2010.
Visual Studio templates for SharePoint 2010 are integrated in Visual Studio 2010 and can be used for better integration. It alone by itself is not so useful. There is an add-on CKSDEV enhances the functionalities of it. With this extensions it becomes as good as WSPBuilder.
Which tool is better to use is a matter of personal choice and I will left it on individual.
Back to the main topic of migration.
I have found two useful methods of migrating code faster from MOSS 2007 to SharePoint 2010. None of them is 100%, but it definitely helps with most of the manual tasks.
- Import SharePoint Solution Package
If you have WSP for the code, Visual studio 2010 provides an option of importing WSP. Now this is interesting as it does not rely on which tool is used to generate WSP. As long as WSP is properly built, we are good to go.
-
Import WSPBuilder Project
If you have MOSS 2007 WSPBuilder project structure, then this comes handy. Just follow the steps and you are good to go.
Even though none of these method is perfect (at least for the projects I was trying!), these methods migrated code more than 90% properly. Once it is done with migration, we still need to go and cross verify the code items.
Hope this helps.



Excellent insights! I have been previously hunting for something like this for a while now. Thanks for your insight!
That was really an intersting detailing on SharePoint. Thanks for this informative post. Looking forward to get more information on this topic from your blog.
I am glad to be one of the visitors on this great site (:, thankyou for putting up. – I have been laid up with intentional flu. Samuel Goldwyn 1882 1974
Fantastic goods from you, man. I’ve understand your stuff previous to and you are just too excellent. I really like what you have acquired here, certainly like what you’re stating and the way in which you say it. You make it enjoyable and you still take care of to keep it smart. I cant wait to read much more from you. This is actually a wonderful web site.
How do I get the “Import WSPBuilder Project” menu in VS 2010?
You should have it under SharePoint > 2010. Please ping me with more info if it still an issue.
Install http://cksdev.codeplex.com/
I gotta give it to you I hadn’t thought of this before thanks
Howdy blogger, thank you for providing this article.. I found it first-class.
I get exceptions from “Import WSPBuilder Project”.
One is like this: http://cksdev.codeplex.com/discussions/256489
I am importing into a clean SP2010 server with VS2010 and CKSDev.
I wonder if the server also needs to have old WSS/MOSS installed? (hope not)