Deploying Web Parts
The Visual Studio web part extensions automatically create an installation script in the project's bin\Debug folder when you deploy your web part project during development. To build a release version:
Click Build → Configuration Manager, select "Release from the Active solution configuration" drop-down list, and then click Close.
Click Project → Properties → Debug, and enter the address of your development SharePoint site in Start Action (as shown earlier in Figure 11-4).
Click Debug → Deploy. Visual Studio rebuilds the project in Release mode, creates the setup script, and deploys the web parts to your development machine.
Edit the setup.bat script created in the bin\Release folder to change the TargetUrl.
To deploy the web parts on a production server:
Copy the Release folder to a public share.
Log on to the target server.
Run setup.bat from the Release folder copied in step 1.