IT tutorials
 
Applications Server
 

Packaging and Deploying Sharepoint 2013 Apps : Anatomy of an App (part 1)

2/5/2014 2:51:26 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

For any SharePoint 2013 apps to deploy and be of use to anyone, they must be first packaged into .app packages, which in turn are Open Packaging Convention (OPC) packages, and therefore Zip files in disguise. If you rename them with a .zip extension you can open and extract them much like you would any other Zip package. The OPC packaging format is fully documented and standardized. You can read more about it and working with packages at: http://msdn.microsoft.com/en-us/magazine/cc163372.aspx.

A SharePoint app package has four main parts:

  • Manifest
  • SharePoint solution package
  • Web deploy package
  • Database package

For those developers familiar with full-trust solution .wsp files in SharePoint 2010, this concept of a single file containing multiple subparts might seem familiar (excluding the database package portion). In SharePoint 2010, WSP solutions also included a manifest, files and assets, and code packages (DLLs). However, in SharePoint 2013 the format and deployment of these assets varies greatly.

The manifest in an app package contains important information such as the app’s name and version.

The SharePoint solution package contains XML-based declarations for SharePoint components such as lists and content types that should be deployed as part of the app.

The Web deploy package is the code portion of your app. It is the package that will be deployed to Azure as part of an Autohosted app.

Finally, the database package contains the SQL Azure deployment package that deploys and creates a database as part of an Autohosted app deployment, and might include post deployment scripts to populate tables with data.

To better understand the format and contents of an app package, take a look inside one in the following Try It Out.


Exploring an App Package (SharePointAppPackage.app)

In this exercise you open an .app package file and explore its parts.

1. Copy the SharePointAppPackage.app file to a location on your hard drive; for example, c:\tmp\SharePointAppPackage.app.

2. Right-click the file and choose Rename.

3. Remove the .app extension and replace it with .zip. You might need to turn on Show file extensions in Windows Explorer options if you don’t see the .app extension when you go to rename it.

4. If you are asked whether you are sure you want to rename the file choose OK.
5. After renaming it, open the Zip file. You should see a set of files similar to the one shown in Figure 1.

FIGURE 1

image

6. Select all the files and copy them to a new location outside of the Zip file. This step assists with opening and exploring them.

7. Open the AppManifest.xml file. You will see the manifest markup as shown in the following code snippet. This contains the name of the app, ID, version, and other information about the app code and where it’s located.
<?xml version="1.0" encoding="utf-8"?>
<App xmlns="http://schemas.microsoft.com/sharepoint/2012/app/manifest"
Name="SharePointAppPackage" ProductID="{6b80672f-3edc-409c-94fe-608ee4264280}" Version="1.0.0.0"
SharePointMinVersion="15.0.0.0">
<Properties>
<Title>SharePointAppPackage</Title>
<StartPage>~remoteAppUrl/Pages/Default.aspx?{StandardTokens}</StartPage>
</Properties>
<AppPrincipal>
<AutoDeployedWebApplication />
</AppPrincipal>
<AppPermissionRequests>
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web"
Right="FullControl" />
</AppPermissionRequests>
<AppPrerequisites>
<AppPrerequisite Type="Capability" ID="A83C8D70-71DE-4260-9FB8-677418EB47F2" />
<AppPrerequisite Type="Feature" ID="5B79B49A-2DA6-4161-95BD-7375C1995EF9" />
<AppPrerequisite Type="AutoProvisioning" ID="Database" />
<AppPrerequisite Type="AutoProvisioning" ID="RemoteWebHost" />
</AppPrerequisites>
</App>
How It Works

The fundamental part of an app package is the app.manifest file. As you have seen in this example it is straightforward to open and look around inside an app package. It is also recommended you take a look inside the SharePointAppPackage.Web.zip file. This is the app code and pages packaged in a Web deploy package.

The Database1.dacpac file is the SQL Database project for the app that will be deployed to SQL Azure when the application is installed.
The last important element is the SharePointAppPackage.wsp file. This is the SharePoint Solution package that contains definitions for things such as content types, columns, lists/libraries, and features.

In the following sections you will explore each of these main components that go into an app package in more detail and also try out building your own.

 
Others
 
- 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
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us