Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Visual Studio 2013 Cookbook
Visual Studio 2013 Cookbook

Visual Studio 2013 Cookbook: Understanding the latest features of Visual Studio can speed up and streamline your projects. And there's no better learning tool than this collection of focused recipes that gives you the fast, hands-on experience you need.

eBook
€8.99 €28.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Visual Studio 2013 Cookbook

Chapter 2. Getting Started with Windows Store Applications

In this chapter, we will cover:

  • Getting a Windows Store app developer license

  • Creating a Windows Store app

  • Adding a Windows Store item template to your app

  • Using the Windows Store app simulator

  • Defining capabilities and contracts

  • Analyzing your App's performance

  • Packaging your Windows Store app

  • Validating your Windows Store app

Introduction


The appearance of the Windows Runtime (WinRT) brought forth a lot of attention when it was introduced as part of the shift in focus to Windows 8. Since the general availability of Windows 8-based systems and the OS itself, there is an opportunity to see first hand what the runtime meant. Essentially, Microsoft felt the need to advance the state of Windows application development by providing a new platform that recognized the rise of non-PC-based devices, touch interfaces, and to combine that with a method to obtain safe and secure Windows applications. WinRT abstracts away the underlying hardware, minimizes security risks, and prevents developers from making insecure or poorly performing calls via the traditional Windows API.

What WinRT offers developers familiar with Windows-based tools is the ability to easily create secure apps that run on Windows 8-based systems. Your users benefit from a straightforward shopping, purchasing, and installation process. As a developer, you...

Getting a Windows Store app developer license


In order for your local Windows apps to be run on your local developer machine, you will need a developer license. Note that this license is free and different from a developer account. The license allows you to develop and test Windows Store apps on your local developer machine. The account is used in conjunction with distributing your app through the Windows Store. There is no cost to obtain a license; it is merely used by Microsoft to track who is developing Windows Store apps. Conversely, a fee is charged by Microsoft to obtain a developer account.

A developer license is required because there would be security implications if a malicious Store app was distributed independent of Microsoft's ability to verify its safety. Consequently, each machine or device that you intend to test your app on must have its own developer license.

In this recipe, we will cover obtaining the developer license needed so that you can get started with writing Windows...

Creating a Windows Store app


We'll begin by creating a basic Windows Store app that uses JavaScript/HTML. For this example, we will use the Hub app template.

Getting ready

Ensure that you are running Windows 8.1 in order to have the ability to create a new Windows Store app. You may use Visual Studio Express 2013 for Windows or one of the premium versions of VS2013 (Professional/Premium/Ultimate).

How to do it…

There are several types of app templates available, but we will start with the Hub style as follows:

  1. From Visual Studio's File menu, navigate to New | Project....

  2. A dialog of available project templates will appear. From the Installed templates category, navigate to the JavaScript | Windows Store | Hub App template. A preview of the app layout will appear in the details pane as shown in the following screenshot:

  3. Leave the name as the default and click on OK to create the app.

  4. The project will appear in Solution Explorer and the default.js file will be open in the document area.

  5. Press F5 to...

Adding a Windows Store item template to your app


Unless you're building a "Hello World" app, you're probably going to want to add more code files and assets to your project than are provided with the standard project templates. Since Microsoft wants Windows Store apps to not only offer great functionality, but to also meet the Windows Store design principles, it has provided a number of ready-made item templates for you to use as part of your development effort.

User interface item templates come with a common look and feel and subtle animations, so your app behaves like other Windows Store apps. Contract templates provide you with the boiler plate code and UI for building Windows 8 Contract support into your app.

In this recipe, you'll see how to use an item template to add functionality to a Windows Store app.

Getting ready

Create a new blank Windows Store app using C# by following the steps in the previous recipe, Creating a Windows Store app.

How to do it...

In order to use an item template...

Using the Windows Store app simulator


You may recall that one of the design goals of Windows Store apps was that they should run equally well on a multitude of devices, including tablets and other touch-enabled devices and they should also support a number of different views such as the Snapped and Full views.

As most developers use powerful desktops or high-end laptops for developing software, these machines exceed the capabilities of many portable devices. They also typically lack some of the other features found in portable devices such as GPS, or gyroscopes. To handle the differences between developer machines and the target devices, Microsoft includes a Windows Store app Simulator with Visual Studio that can be used to test your Windows Store apps without the need of a second physical machine to deploy to.

This recipe will show how to use the simulator to assist in developing your own apps.

Getting ready

Create a new C# based Windows Store project using the Split App (XAML) template and...

Defining capabilities and contracts


Windows 8 provides Windows Store apps with the ability to communicate with any other app on the computer without prior knowledge of what those apps might be through a concept called Contracts. A Contract is an operating system level interface that consumers or providers of information implement. The operating system then keeps track of which apps support which contracts and coordinates the information between apps using those contracts.

Window 8, as part of its focus on improving the trust level in the apps it runs, expects Windows Store apps to communicate the capabilities they need. A Capability is a permission or access right that a Windows Store app requires for it to run correctly, for example, an app that requires Internet access or local network permissions. There is a range of capabilities that the operating system can provide to Windows Store apps. An app that doesn't request capabilities from the operating system will be provided minimum level...

Analyzing your App's performance


Visual Studio 2013 has added additional app performance and diagnostic tools over what was found in VS2012. The Performance and Diagnostics menu provides the following tools:

  • CPU Sampling: This tests what parts of your app are CPU intensive.

  • Energy Consumption: This runs your app to determine how much power it consumes. It is a useful guide to maximize battery life when your app is being run on a portable device.

  • XAML UI Responsiveness: Ensuring your app feels fast to users is critical to its adoption. This tool helps you monitor where your app may need optimization.

Getting ready

For this example, we will continue to use the SplitApp project created in the Using the Windows Store app simulator recipe.

How to do it…

The following are steps to analyze your app's performance:

  1. With SplitApp open, open the Performance and Diagnostics screen. For Visual Studio Express, this is found under the menu Debug | Performance and Diagnostics. For the paid editions (Professional...

Packaging your Windows Store app


For Windows 8 to correctly load and run a Windows Store app, it must be packaged in a particular format. The information contained in the package includes the capabilities and contracts that your app uses as well as information on the app user tile, the splash screen, and more.

This recipe will show you what you need to do to package your Windows Store app so that it is ready for the world to use.

Getting ready

Open the SplitApp project that you created in the Using the Windows Store app simulator recipe.

How to do it...

Perform the following steps for packaging your Windows Store app:

  1. Open the Package.appxmanifest file from Solution Explorer.

  2. Examine the fields in the Application UI tab. Add a space to the Display Name field so that it reads as Split App instead of SplitApp.

  3. Add a useful description in the Description field. For example, A sample app using the Split layout.

  4. Moving to the Visual Assets tab, under the Tile section, confirm the Show name field is...

Validating your Windows Store app


Every app submitted to the Windows Store will be validated by Microsoft before being listed. Part of that validation process involves running the app through an automatic certification tool that Microsoft has included with Visual Studio. You should check that your app passes the certification tool before beginning the Windows Store submission process.

Getting ready

Ensure the SplitApp project you were using in the Packaging your Windows Store app recipe is working correctly and has been deployed.

For the certification process to work, your deployed version must be in the Release mode.

How to do it...

The following steps need to be performed in order to validate your Windows Store app:

  1. From the Windows Start screen, launch the Windows App Cert Kit. The app will prompt for elevation and then start a wizard as shown in the following screenshot:

  2. Select the Validate Windows Store App option. The tool will search for Windows Store apps installed on your machine and list...

Left arrow icon Right arrow icon
Download code icon Download Code
Estimated delivery fee Deliver to Norway

Standard delivery 10 - 13 business days

€11.95

Premium delivery 3 - 6 business days

€16.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 17, 2014
Length: 332 pages
Edition :
Language : English
ISBN-13 : 9781782171966
Vendor :
Microsoft
Category :
Languages :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Norway

Standard delivery 10 - 13 business days

€11.95

Premium delivery 3 - 6 business days

€16.95
(Includes tracking information)

Product Details

Publication date : Mar 17, 2014
Length: 332 pages
Edition :
Language : English
ISBN-13 : 9781782171966
Vendor :
Microsoft
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 83.98
Visual Studio 2013 Cookbook
€37.99
Visual Studio 2013 and .NET 4.5 Expert Cookbook
€45.99
Total 83.98 Stars icon
Banner background image

Table of Contents

9 Chapters
Discovering Visual Studio 2013 Chevron down icon Chevron up icon
Getting Started with Windows Store Applications Chevron down icon Chevron up icon
Web Development – ASP.NET, HTML5, CSS, and JavaScript Chevron down icon Chevron up icon
.NET Framework 4.5.1 Development Chevron down icon Chevron up icon
Debugging Your .NET Application Chevron down icon Chevron up icon
Asynchrony in .NET Chevron down icon Chevron up icon
Unwrapping C++ Development Chevron down icon Chevron up icon
Working with Team Foundation Server 2013 Chevron down icon Chevron up icon
Languages Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.2
(13 Ratings)
5 star 53.8%
4 star 23.1%
3 star 15.4%
2 star 0%
1 star 7.7%
Filter icon Filter
Top Reviews

Filter reviews by




A. Zubarev Apr 18, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Oh Visual Studio! A very fast evolving product, who does not use it when developing on a Microsoft platform?I used the one 1st in my life that came in late 90s, it if I remember correctly it offered 3-4 projects.Today, after it went through such an evolution Visual Studio has reached an enormous heights. From ETL to reports, from DirectX to tests, from database projects to Windows Store App development, and what not?A book on Visual Studio makes a lot of sense.Gladly Packt has one off its sleeve that is called Cookbook, in my view these books simply avoid wasting your time. Yet this book is quite universal, if you wish, it will take you through basics as opening a developers` account, or if you do not want to walk baby steps you can jump straight to very advanced topics as say the TPL Dataflow, WPF, Bootstrap and more.I felt the book can be sliced and diced like a multidimensional cube, back and forth without any particular order and all would still make sense. Feel free to pick only the parts you need or like.I enjoyed reading on Python with .Net integration, turned out it is simple.WCF is something I will be doing soon at work, so this book will be revisited gain.The book is full of graphics, coloreful, high quality graphics, very well structured examples, and full of insight, discusses improvements and suggest on best practices.The book also covers working with a workflow, graphics, it was even fun to refresh my C++ skills in Visual Studio 2013 retrospective.In terms of closing, it makes sense to have a printed copy or two, the book must be kept on a bookshelf ready to be borrowed by colleagues. Having it in the eBook format is as helpful as you can search it whenever you need some reference or a refresh. On another note, I wish the book could cover more material as BI, Database, F# development,I am giving this book the maximum mark possible.
Amazon Verified review Amazon
CaroleCronan Jul 09, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excellent
Amazon Verified review Amazon
Rae J. Owen Apr 03, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Great book very helpful.
Amazon Verified review Amazon
Sergio Costa May 25, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
There’s a lot on this book, not just for those who already know and use Visual Studio and want to learn what’s new with the 2013 version, but also for those that never used it before or are even new to .Net programming. If you are a new .Net programmer, I don’t recommend you get as your first programming book, of course, but I do recommend you get it sometime along your way through your .Net path as a developer. If you are a seasoned developer, you will find a lot of stuff you probably already know but you’ll also certainly be surprised with some nice tips and get to learn a lot of new features shipped with VS2013.I definitely recommend you check Visual Studio 2013 Cookbook whenever you can. If you're serious about developing with Visual Studio, this is a great book to get and you'll certainly find something new to learn.
Amazon Verified review Amazon
Matthew Rowan Apr 28, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Why would you buy a Visual Studio 2013 book instead of just using the Internet to find what you need? Simple, time and content. The amount of new features and ways to do things in this version is substantial. Mining the Internet you are sure to miss many gems that could make a large difference to your day-to-day work. Going through this book you will benefit that a team of people has done the work for you. Ensuring they have included everything and the content is correct for your easy perusal.Chapter 1 gives a very good overview of the new additions to the main tool you use each day.Chapter 2 gives a very good starting place for Windows 8.1 development. It will get you past the new stuff quickly to allow you to get into the code.Chapter 3 goes over Web Development with MVC 5 and the new One ASP.NET model.Chapter 4 uses some I'm not dead yet WPF ("WPF remains the recommended choice for developing desktop applications on the Windows platform. Visual Studio 2013 itself is a WPF application", p 118) WF, WCF and .NET application development.Chapter 5 Debugging EnhancementsChapter 6 Asynchrony in .NETChapter 7 C++, I skimmed this one, but the C++ developer should be thrilled, and it makes me want to learn DirectX.Chapter 8 Team Foundation Server features from a users perspective. Great features that many developers aren't utilizing that can very much help day-to-day. If you are managing a TFS server though, you'll want more than what is provided here.Chapter 9 is on languages TypeScript, Python and IronPython. TypeScript I knew and understand, but I have no idea about Python, and don't really want to, but it's good to know it's available if that's your flavour of choice.Appendix contains recipes on Installers, Submitting Windows Store apps, Visual Studio Add-ins and extensions, and creating your own snippets.The "There's more..." sections littered throughout are valuable on there own, revealing many power user features I was unaware of. The recipe format of the books make it a great reference to have on-hand. Going to the relevant recipe within the book will be a faster and more reliable process than going online.I intended to flick through this book quickly and dive in on a couple of chapters. I however could not help but go through it all. The capabilities we have available to us, just from Visual Studio is amazing. Going over it all I can't help but think of all the possibilities and opportunities. Now I must get back to coding.Review also posted on my blog [...]Disclaimer: I was provided a complimentary electronic copy of this book by the publisher. In no way was I directed on the content of my review. Opinions are mine alone.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela