Book Image

Visual Studio 2012 Cookbook

By : Richard Banks
Book Image

Visual Studio 2012 Cookbook

By: Richard Banks

Overview of this book

<p>There’s a new technology wave coming, and for Microsoft this is reflected in Windows 8, HTML5 web development, .NET 4.5 and C++11. Riding that wave is a new version of their flagship development tool, Visual Studio 2012, and "Visual Studio 2012 Cookbook" has you putting the new features into practice from the get-go! <br /><br />Among the exciting new features of Visual Studio 2012 is support for Windows 8, HTML5 and asynchronous development, as well as Team Foundation Server 2012 integration. “Visual Studio 2012 Cookbook” doesn’t waste time explaining what you already know from prior Visual Studio versions; instead you’ll see targeted and focused recipes on only new features so that you can get up to speed and back to work faster.<br /><br />“Visual Studio 2012 Cookbook” empowers you to take advantage of all the new features in Visual Studio 2012 so that you can develop applications for the next technology wave.</p> <p>The task-based recipes in this guide will have you up and running with improvements like support for Windows 8 development, HTML5 and JavaScript, .NET 4.5, asynchronous code and C++11.</p> <p>And since most people don’t develop alone, you’ll also see how the new team development features of Visual Studio 2012 and Team Foundation Server 2012 can help your whole team work smarter, not harder.<br /><br />Time is short and you’re in a hurry, so “Visual Studio 2012 Cookbook” will help you discover what’s new by way of a simple recipe format that is quick and easy to digest.</p>
Table of Contents (17 chapters)
Visual Studio 2012 Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Submitting apps to the Windows Store


While existing legacy desktop style applications can be distributed using current mechanisms, the only way to distribute Windows Store apps will be via the Windows Store, and they must pass a certification process for that to happen.

Enterprises and developers will be able to side-load their Windows Store apps, bypassing the store restrictions.

Getting ready

Start Visual Studio 2012 in Windows 8 and you're all set to begin.

How to do it...

Perform the following steps:

  1. Start a new Visual C# | Windows Store | Blank App (XAML) project.

  2. From the menu, select Project | Store | Open Developer Account.

  3. A browser window will open and you can apply for a developer account using the process as outlined on the page. Windows Store accounts may require a payment of a small license fee, so have a credit card handy when you perform this step.

  4. Once you have an account, switch back to Visual Studio and from the menu choose Project | Store | Reserve app name.

  5. Again a browser window will open and you will be directed to the Windows Store to register the name for your application. Follow the process as described on that page.

  6. From the Visual Studio menu, select Project | Store | Edit App Manifest and use the information from the app name reservation to populate the appropriate fields. Take particular note of the fields on the packaging tab.

  7. Alternatively you can select the Project | Store | Associate App with the Store menu entry and follow the steps of the wizard to automatically populate the packaging tab with the appropriate values.

  8. Write your application. No, really you should. There is no point submitting an application that does nothing.

  9. Verify your application using the Windows App Certification Kit. Refer to the Validating your Windows Store app recipe in Chapter 2, Getting Started with Windows Store Applications to do this.

  10. Package your application for uploading to the store by choosing Project | Store | Create App Package.

  11. Upload the package to the store by selecting Project | Store | Upload App Package from the menu and following the steps presented in the ensuing upload wizard.

  12. Once the upload completes you can monitor the progress of your package through the approval process using the tools provided by the store.

How it works...

The Store submenu is only available when running Visual Studio in Windows 8 and when you have opened the solution for a Windows Store app.

When you upload a package to the store there are a number of basic sanity checks to verify your package is acceptable and meets the requirements of the Windows Store. These checks include running the certification toolkit on your app and verifying the manifest information against the information you supplied when you registered the app name. Using Visual Studio's Associate app with the store wizard is an easy way to make sure you don't have any typographical errors in your manifest and it improves the chances of a successful first time submission.

There's more…

If you want to make money with Windows Store apps you aren't limited solely to upfront purchase revenues.

You can also distribute your app using a trial mode that encourages a try before you buy approach, provides functionality for in-app purchases, in-app advertising using any ad platform you choose, and you can even implement you own transaction system if you so desire.

For in-app purchases and trial versions of your product, Microsoft bundles supporting functionality in the Windows.ApplicationModel.Store namespace to make it easier for you to build applications with these features.

If you want to confirm what are the requirements for App certification refer to the Microsoft documentation on the subject at http://msdn.microsoft.com/en-us/library/windows/apps/hh694083.aspx.

See also

  • The Packaging your Windows Store app recipe, Chapter 2, Getting Started with Windows Store Applications

  • The Validating your Windows Store app recipe, Chapter 2, Getting Started with Windows Store Applications