When you need to downgrade/convert a SharePoint 2010 Visual Web Part to SharePoint 2007, you need to make the following changes to the user control to make it work for SharePoint 2007:
- In the Visual Web Parts User Control remove the following line:
|
|
- Change the version number of the following lines from 14.0.0.0 to 12.0.0.0
|
|
- The next steps to downgrade can be found on Corey Roth his blog: Using Visual Studio 2010 SharePoint Templates to deploy a web part in SharePoint 2007.
Original

Modified
