Applications Server
 

Packaging and Deploying Sharepoint 2013 Apps : Packaging and Publishing an App

2/5/2014 2:55:44 AM

Now that you understand the four main parts of an app you can begin the process of packaging and publishing your own app. When you package an app you essentially take the Web deploy package, database package, SharePoint solution package and app.manifest and combine them into an .app file. After you have an .app file you are ready to publish it to a location where users can install it. You can publish an app either using a private app catalog or the public SharePoint store.

Packaging an App

After you have completed developing an app and are ready to deploy it to either an on-premises SharePoint farm or to SharePoint Online, you need to get it ready for deployment by packaging it.

As Chapter 3, “Developer Tooling for SharePoint 2013” discusses, Visual Studio 2012 provides some excellent tools to increase your productivity when writing SharePoint apps, but the help doesn’t stop there. Visual Studio provides a number of tools to help you package your apps into .app files for either automated or manual deployment. In fact, when you press F5 to debug an application, Visual Studio packages the app and deploys it automatically to SharePoint for you!

Visual Studio provides integrated publishing wizards that guide you through the process of packaging your application. This wizard varies depending on the type of application you have built, but in each type the process starts by using the Publish function available when you right-click your application project. See Figure 1.

FIGURE 1

image

Depending on the type of app you have built, the deployment wizard varies and requires different information. For example, in some cases it asks for a client ID and client secret whereas in SharePoint-hosted apps no additional information is needed at all. The following section, “Deploying an App,” explores the deployment process in more detail for each type of application package and walks through examples of each.

Private Publishing in an App Catalog

Before an application can be installed you must publish it to either a private app catalog, on premises or in SharePoint Online, or in the public Marketplace provided by Microsoft. Many organizations may want to build applications that only they intend to use, or they may turn off the ability to purchase apps from the Marketplace and only offer apps they provide in the private app catalog. The app catalog enables organizations to offer a private and curated app catalog that they control to users in the organization.

An app catalog is simply a SharePoint site based on a provided template. An organization can create and configure an app catalog in a few simple steps and offer users a curated list of apps with which the organization is comfortable with. After you create the apps, installing them from the catalog into a site is seamless and integrated into the existing app installation process.

In following exercise you will learn how to create a new app catalog for privately deploying apps to.


TRY IT OUT: Creating a Private App Catalog in Office 365
In this example you create an app catalog for SharePoint Online. You need a SharePoint Online site prior to starting this exercise.
1. Navigate to portal.microsoftonline.com and log in with your Office 365 credentials. You must be a tenant administrator in order to do this exercise.
2. Under the Admin menu in the top navigation, click SharePoint to go to the SharePoint Online tenant admin pages as shown in Figure 2.

FIGURE 2

image

3. Click apps in the left-side navigation in the screen that appears.

4. Click the App Catalog link.

5. Select the Create a new app catalog site option and then click OK.

6. On the Create page, enter Contoso App Catalog in the Title field.

7. Ensure /sites/ is selected in the drop-down list and then type in AppCatalog in the box to the right. This is the site collection URL for the site.

8. Enter your name in the Administrator field and make sure it resolves to the correct account using the provided tick button to the right. The form should look like the one shown in Figure 3.

FIGURE 3

image

9. Click OK to create the catalog; the site will start to be created.

10. After the process completes, go back into the app configuration settings in your tenant admin by clicking the apps link in the left-side navigation.

11. Click the App Catalog link. The catalog site that you just created appears. You have now created a private app catalog for your organization and can start to populate it with apps.

How It Works
An app catalog is simply a SharePoint collection based on a particular template. In this exercise you created the catalog site collection via the SharePoint Online tenant admin site. This instructed SharePoint to create the site and configure it to be the catalog for your tenancy. It is now ready for apps to be deployed to it.
 
Others
 
- Packaging and Deploying Sharepoint 2013 Apps : Anatomy of an App (part 3) - Web Deploy Package, Database Package
- Packaging and Deploying Sharepoint 2013 Apps : Anatomy of an App (part 2) - Manifest and Assets, SharePoint Solution Package
- Packaging and Deploying Sharepoint 2013 Apps : Anatomy of an App (part 1)
- Exchange Server 2013 : Exchange Clients - Design Considerations (part 3) - Network Usage, Exchange 2013 User Throttling
- Exchange Server 2013 : Exchange Clients - Design Considerations (part 2) - Client Performance
- Exchange Server 2013 : Exchange Clients - Design Considerations (part 1) - Supportability, Security
- Sharepoint 2013 : Community portals and sites - Managing your community settings
- Sharepoint 2013 : Community portals and sites - Adding users to community sites
- Sharepoint 2013 : Community portals and sites - Adding moderators to community sites
- Sharepoint 2013 : Community portals and sites - Creating a community site subsite
- Sharepoint 2013 : Community portals and sites - Creating a community site site collection
- Microsoft Lync Server 2013 Edge Server : Edge Server Installation (part 5) - Creating Certificates
- Microsoft Lync Server 2013 Edge Server : Edge Server Installation (part 4) - Installing the Edge Server
- Microsoft Lync Server 2013 Edge Server : Edge Server Installation (part 3) - Deploying a Load-Balanced Edge Server Pool, Publish the Topology
- Microsoft Lync Server 2013 Edge Server : Edge Server Installation (part 2) - Edit the Topology, Deploying a Single Edge Server Pool
- Microsoft Lync Server 2013 Edge Server : Edge Server Installation (part 1) - Configure Networking
- Microsoft Lync Server 2013 Edge Server : Edge Server Overview (part 2)
- Microsoft Lync Server 2013 Edge Server : Edge Server Overview (part 1) - Access Edge Service
- Exchange Server 2013 : Exchange Clients - Performing a Client Inventory
- Exchange Server 2013 : Exchange Clients - Why Does Client Choice Matter?
 
 
Most View
 
- Exchange Server 2013 : Exploring useful EMS examples (part 2) - Creating a report in HTML
- Sharepoint 2013 : Navigate Through a SharePoint Site (part 3) - Use the Breadcrumbs, Use the Navigate Up Breadcrumbs
- Personalizing Windows 8 : Protecting Yourself with Windows Firewall - Advanced Firewall Configuration
- Microsoft Project 2010 : Strategic Importance of Project 2010
- Microsoft Excel 2010 : Working with Graphics - Inserting WordArt, Using Smart Art in Excel
- Taking Microsoft Project 2010 for a Test Drive (part 7) - How Long Will All These Tasks Take?
- Windows 8 : Disks and Storage Devices - Optical Discs, USB Flash Drives
- Windows 8 : Creating a Windows Network - Installing Network Adapters
- Sharepoint 2013 : Customizing a SharePoint Site - Open the Site Settings Page
- Microsoft Visio 2010 : Distributing Templates and Stencils (part 2) - Creating a Separate Stencil for Shape and Code Delivery
 
 
Top 10
 
- Sharepoint 2013 : Working with media - Working with video files (part 3) - Use a picture from a web address as a thumbnail, Associate related content to a video file
- Sharepoint 2013 : Working with media - Working with video files (part 2) - Use an image from your computer as a thumbnail
- Sharepoint 2013 : Working with media - Working with video files (part 1) - Capture a thumbnail from the video
- Sharepoint 2013 : Working with media - Organizing by using keywords and metadata
- Sharepoint 2013 : Working with media - Tagging media files
- Sharepoint 2013 : Working with media - Uploading and tagging media files
- Sharepoint 2013 : Working with media - Introducing the Asset Library app
- Microsoft Word 2010 : Creating Mail Merge Documents - Creating a Data Document
- Microsoft Word 2010 : Creating Mail Merge Documents - Importing Data from Outlook
- Microsoft Word 2010 : Creating Mail Merge Documents - Importing Data from a Database