Manual: Publishing an Initial Version of an Application
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This topic describes how to publish an initial version of a ConfigurationModularity QuickStart application using the .NET Framework 3.5 SDK Manifest Generating and Editing tool (Mage).
Prerequisites
This topic requires the following:
- Composite Application Guidance must be downloaded and unpacked to a folder.
- Internet Information Services (IIS) must be installed.
- The ConfigurationModularity QuickStart application solution must be built.
Note
If you are using Internet Information Services 7.0 (IIS7), the IIS 6 Metabase and IIS 6 Configuration Compatibility component is also required. To deploy the application from IIS7, you will need to change the Application Pool basic setting for the virtual directory to the Classic .NET AppPool instead of the Default .NET AppPool.
Steps
You will publish the ConfigurationModularity QuickStart application with the following steps:
- In Visual Studio, set the project publish settings and publish the ConfigurationModularity QuickStart application.
- Copy the additional module files to the publish application files directory.
- Update the application manifest using Mage.
- Update the deployment manifest using Mage.
You first need to publish the ConfigurationModularity QuickStart application from Visual Studio to generate the manifests and to publish the application outputs as application files.
To publish the ConfigurationModularity QuickStart application from Visual Studio
- In Visual Studio, open the ConfigurationModularity QuickStart solution.
- Right-click ConfigurationModularity, and then click Properties.
- Click the Publish tab.
- Change the** **Publishing Location folder to https://localhost/ConfigurationModularity/.
- Click Updates.
- Select the The application should check for updates check box if it is not already selected.
- Select the Before the application starts option if it is not already selected.
- Click Publish Now.
The project will be built and published to the location specified.
To copy the additional module files to the publish folder
- Copy the following files from the build output folder's Modules subfolder (for example, C:\CompositeWPF\QuickStarts\Modularity\ConfigurationModularity\ConfigurationModularity\bin\Debug\Modules) to the publish folder's application files folder (C:\inetpub\wwwroot\ConfigurationModularity\Application Files\ConfigurationModularity_1_0_0_0\Modules):
- ModuleA.dll
- ModuleB.dll
- ModuleC.dll
- ModuleD.dll
To update the application manifest using Mage
Open a Visual Studio 2008 command prompt, type mage, and then press ENTER.
On the Mage toolbar, click Open a manifest file.
In the published application files folder (C:\inetpub\wwwroot\ConfigurationModularity\Application Files\ConfigurationModularity_1_0_0_0), click the application manifest (ConfigurationModularity.exe.manifest), and then click Open.
In the left pane, click Files.
Click the Populate button (see Figure 1).
Figure 1
Mage application manifest filesIn the** This will permanently rename files** dialog box, click OK.
Find the ConfigurationModularity.application.deploy file in the list of files, select the row, and then press the DELETE key to remove the item from the list of application files.
Note
You may want to open the folder and remove the file name extension .deploy from the .application file because it is not intended for deployment.
On the File menu, click Save.
In the Signing Options dialog box, click the ellipsis button (...), navigate to the publisher certificate that was generated by Visual Studio when you first published from there (for example, C:\temp\QuickStarts\Modularity\ConfigurationModularity\ConfigurationModularity\ConfigurationModularity_TemporaryKey.pfx), and then click it.
Click OK to save and sign the manifest.
To update the deployment manifest using Mage
On the Mage toolbar, click Open a manifest file.
Navigate to the root publish folder (C:\inetpub\wwwroot\ConfigurationModularity\ConfigurationModularity.application), and then click ConfigurationModularity.application.
In the left pane, click Application Reference (see Figure 2).
Figure 2
Mage deployment manifest application referenceIn the right pane, click Select Manifest, navigate to the Application Files\ConfigurationModularity_1_0_0_0 subfolder of the publish folder, and then click ConfigurationModularity.exe.manifest.
In the main Mage window, click Save.
Click the ellipsis button (...), and then select the same publisher certificate (.pfx file) as you did in the previous procedure.
In the Signing Options dialog box, click OK.
Close Mage.
Outcome
The ConfigurationModularity QuickStart application will be ready to deploy through ClickOnce. You will be able to provide a link to the deployment manifest to your users and they will be able to click the link to download and launch the application on their computers.
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |