Packaging a Visual Web Part

This section assumes that the previous section was completed successfully and the web part displays, as shown in Figure 29.23 (with the exception that most likely a different image displayed). To deploy the solution to a staging or production machine, follow these steps:

  1. With the SharePoint 2010 solution open in Visual Studio 2010, access the Solution Configuration drop-down menu on the Standard toolbar, as shown in Figure 29.25, visible just beneath the top menu bar, and change the configuration to Release. The next time the project is built, Visual Studio 2010 generates each project’s binaries (DLLs) without the debug symbols, making them optimized for deployment to production environments.

    Figure 29.25. Change ...

Get Microsoft SharePoint 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.