Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I developed a simple webpart using the Visual Web Part template in Visual Studio 2010 and have been testing it within SharePoint 2010.

I want to know if this web part could be deployed to SharePoint 2007 from the .cab generated by VS2010, and if so, how?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

It can't directly, because it will contain bindings to the SharePoint 2010 DLLs which of course don't exist under SharePoint 2007. However the good news is that most of your work can be kept.

SharePoint Development with Visual Design User Controls on SharePointDevWiki describes how to do the equivalent of visual web parts for SP2007. Have a look at the components explained in that article and you'll see how they already match up with your solution. You just need to repackage it.

If you wish to use VS2010 to do this, know that it doesn't support targeting SP2007. I recommend using WSPBuilder for this purpose.

share|improve this answer
    
Thanx, Can't vote you up though ;) need more reputation –  Anonymous Sep 10 '10 at 14:57
add comment

Have a look at Jan Tielen's Smart Part, it allows AsCX files to be embedded in SharePoint.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.