11: Packaging and Deployment in .NET

Generator QR Code in .NET 11: Packaging and Deployment
11: Packaging and Deployment
Creating QR Code In VS .NET
Using Barcode maker for Visual Studio .NET Control to generate, create QR Code ISO/IEC18004 image in .NET applications.
and open the Properties window you will notice the Active Deployment Configuration property as shown in Figure 11-28
Recognize QR Code ISO/IEC18004 In VS .NET
Using Barcode reader for VS .NET Control to read, scan read, scan image in .NET applications.
Figure 11-28: Active Deployment Configuration property
Barcode Generator In .NET
Using Barcode creator for .NET framework Control to generate, create barcode image in Visual Studio .NET applications.
The second place where you can change the active deployment configuration is from the property pages shown when you right click the project and choose Properties The SharePoint property page can also be used to view the existing deployment configurations (default and no activation) as well as to create new deployment configurations Let s use the SharePoint property page to create a simple deployment configuration As a base we are going to use the same steps and order used in the default deployment configuration In our new deployment configuration we will define custom pre- and postdeployment commands to write something to the Output window We also won t use the retract solution or the recycle IIS application pool steps Follow the steps below to open the SharePoint property page and start creating new deployment configurations 1 Open Visual Studio in elevated mode 2 Click File > New Project 3 Create a new Empty SharePoint project Accept the default in the SharePoint Customization Wizard and click Finish to create the project
Scanning Barcode In .NET Framework
Using Barcode decoder for Visual Studio .NET Control to read, scan read, scan image in Visual Studio .NET applications.
Configurable Deployment
Generating QR Code ISO/IEC18004 In Visual C#
Using Barcode printer for Visual Studio .NET Control to generate, create QR-Code image in VS .NET applications.
4 Right click the project name in the Solution Explorer and select Properties from the context menu The Project property pages open as shown in Figure 11-29
Encode QR-Code In Visual Studio .NET
Using Barcode maker for ASP.NET Control to generate, create Denso QR Bar Code image in ASP.NET applications.
Figure 11-29: Project property pages
Drawing QR Code In VB.NET
Using Barcode maker for Visual Studio .NET Control to generate, create QR Code ISO/IEC18004 image in VS .NET applications.
5 Click the SharePoint tab to open the SharePoint property page The SharePoint property page shown in Figure 11-30 is displayed From this page we can create, edit, view, and delete deployment configurations and set additional settings that affect debugging 6 Click the New button The Add New Deployment Configuration dialog shows the available deployment and retractions steps we can use in our deployment configuration The dialog is shown in Figure 11-31 7 Change the deployment configuration name to My Deployment Configuration
Make ECC200 In Visual Studio .NET
Using Barcode generation for .NET Control to generate, create DataMatrix image in .NET applications.
11: Packaging and Deployment
Creating Code 128 Code Set B In Visual Studio .NET
Using Barcode generation for VS .NET Control to generate, create Code 128 Code Set A image in VS .NET applications.
Figure 11-30: SharePoint property page
Generate UPC Code In VS .NET
Using Barcode generator for .NET Control to generate, create UCC - 12 image in .NET framework applications.
Next, we should select the deployment and retraction steps To include a step in the deployment configuration you can double click it in the list of Available Deployment Steps on the left or click the > button with the step selected on the left This will move the step from the left to the right side of the dialog to the list of Selected Deployment Steps There are also buttons on the right side of the dialog to reorder steps once you have them in the Selected Deployment Steps list and to remove a step from the Selected Deployment Steps list 8 Add the following steps to the selected deployment steps list: Run Pre-Deployment Command Add Solution Activate Features Run Post-Deployment Command
Printing EAN-13 In .NET Framework
Using Barcode maker for VS .NET Control to generate, create EAN-13 image in .NET framework applications.
Configurable Deployment
Interleaved 2 Of 5 Printer In .NET
Using Barcode printer for Visual Studio .NET Control to generate, create ANSI/AIM I-2/5 image in Visual Studio .NET applications.
Figure 11-31: New Deployment Configuration dialog
EAN128 Maker In Java
Using Barcode drawer for Java Control to generate, create EAN 128 image in Java applications.
9 Add the following steps to the selected retraction steps list: Recycle IIS Application Pool Retract Solution 10 Use the arrow buttons to the right of the Selected Deployment Steps and Selected Retraction Steps lists to arrange the steps in the right order After you ve done this, the Add New Deployment Configuration dialog should look like the one in Figure 11-32 11 Click OK to close the dialog
Painting Data Matrix 2d Barcode In .NET Framework
Using Barcode generator for ASP.NET Control to generate, create Data Matrix 2d barcode image in ASP.NET applications.
11: Packaging and Deployment
Barcode Encoder In Visual Basic .NET
Using Barcode generation for .NET Control to generate, create bar code image in .NET applications.
Figure 11-32: Add New Deployment Configuration dialog
Make Data Matrix In Java
Using Barcode maker for Java Control to generate, create Data Matrix ECC200 image in Java applications.
You will notice a new entry in the list of deployment configurations Since we said we are going to add custom pre- and post-deployment steps we need to add some custom commands to the provided textboxes at the top of the SharePoint properties page shown in Figure 11-30 Note that pre- and post-deployment commands are not specific to each deployment configuration If you set the pre- and post-deployment commands for Default deployment configuration and then switch to the No Activation deployment configuration, the same pre- and post-deployment steps will be executed Type the following command into the Pre-deployment Command Line textbox:
UPC - 13 Generation In Java
Using Barcode encoder for Java Control to generate, create EAN13 image in Java applications.

Generating ANSI/AIM Code 128 In VB.NET
Using Barcode drawer for .NET Control to generate, create Code128 image in VS .NET applications.
Configurable Deployment
Decoding Code128 In .NET Framework
Using Barcode decoder for .NET framework Control to read, scan read, scan image in .NET framework applications.
When we deploy the project, this message is going to be included in the Output window Let s do something similar with the post-deployment command Type the following command into the Post-deployment Command Line textbox:
UPC Symbol Generation In VS .NET
Using Barcode maker for ASP.NET Control to generate, create UPCA image in ASP.NET applications.

In order to use the new deployment configuration we need to set it as the active deployment configuration To do this use the Active Deployment Configuration combo box on the SharePoint property page to select it, or set the Active Deployment Configuration property in the Properties window for the project Once you ve set the new active deployment configuration, right click the project name in the Solution Explorer and select Deploy Once deployment is finished, the following text appears in the Output window:
                     
This output tells us which deployment configuration we used and which steps were executed Each step also outputs what it is doing, eg, No features in this solution were activated or Deploying solution SharePointProject1wsp If we retract the project we will see a similar output in the Output window It should look similar to this: