Home > English > Developing Windows 8 – Documents Library

Developing Windows 8 – Documents Library

In this series of posts, I am going to focus on tips and tricks I have learned while developing Windows 8 applications. In this post, I wanted to walk you through the simple steps it takes to gain the ability to access the Documents Library programmatically.

Step 1 – You need to open up your package.appxmanifest file in Visual Studio 2012
Step 2 – Click on the Capabilities tab
Step 3 – Select the Documents Library checkbox

Now here is where I was confused for the first moment or so. The moment you select the Documents Library checkbox, you will be presented with the following error as shown below:

App manifest declares document library access capability without specifying at least one file type association.

Here is a screen show of the Error List when you try compiling your application:

It wasn’t until I look at the Capabilities tab and hovered my mouse that I saw a better description as show below:

This error message is a little more intuitive and at leads me to realize that I have some more steps to complete.

Step 4 – Click on the Declarations tab
Step 5 – Select the File Type Associates from the dropdown as shown below:

Step 6 – Fill out the necessary information to complete your file type association

At a bare minimum, you are required to fill out the Name and File type properties.

Hint: If you are curious as to the purpose of a specific field, you can gain more insight to each of the properties by hovering your mouse over the labels.

Step 7 – You will notice immediately that your error indicators are no longer there and you can recompile to update your Error List.

Hope this helps…

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: