Book Image

Visual Studio 2013 and .NET 4.5 Expert Cookbook

Book Image

Visual Studio 2013 and .NET 4.5 Expert Cookbook

Overview of this book

Table of Contents (14 chapters)
Visual Studio 2013 and .NET 4.5 Expert Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

The world is changing and the software industry is no exception. The software that exists today will be obsolete very soon. Introduction of new devices requires newer software. The changes are gradually reflected not only in the devices, but also in every sphere of the software industry—starting from natural language processing, embedded technology, micro-chip level programming, and so on. The hardware revolution asks for language enhancements to support better hardware. A high number of releases of software changes has always been common news for any developer. As a developer, it is very hard to know everything when a new release occurs. Learning continuously and gaining knowledge is the only way to survive in this dynamic software industry.

This book focuses on giving you expert advice on how to deal with changes in the software industry. It provides you with easy steps to deal with complex software problems. It gives you as many details as possible, and covers most of the technological domains in the world of .NET. This book is written in the form of recipes with step-by-step tutorials on every topic, where the developer accompanies the author in this wonderful journey into the known and hitherto unknown realms of .NET. This book presents you, as a developer, with easy steps to solve complex problems and thereby gives you the most relevant associated information that you would require. There is a special section (There's more…) for each recipe, which focuses on giving you extra knowledge on things that you might have missed. By the time you come to the end of this journey, you will enjoy the confidence that a clear understanding of .NET gives you.

This is a practical handbook that effectively utilizes the time spent while reading the book for the knowledge gained. This book is suitable for people who require solutions to problems in quick time, while providing a clear understanding of the topics with relevant sample code blocks. The examples given in this book are simple, easy to understand, and they map the user to port the same code with a few changes in the production environment. If you want to utilize your busy schedule to explore some of the ongoing technologies in the market, this book is for you.

What this book covers

Chapter 1, A Guide to Debugging with Visual Studio, focuses on giving you a basic understanding of the different environments set up inside Visual Studio and deals with all the necessary tools present inside Visual Studio to help in debugging a source. This chapter clarifies the debugging procedures in detail, followed by quick and easy sample code to help find bugs.

Chapter 2, Enhancements to WCF 4.5, deals with the Service Oriented Architecture using WCF. This chapter gives you knowledge on common problems that a developer needs to know and provides you with sample recipes to deal with them. It also gives a clear understanding on all the new features that come along with new releases.

Chapter 3, Building a Touch-sensitive Device Application Using Windows Phone 8, provides a quick introduction on device application development with the Windows Phone environment. This chapter provides simple solutions to some of the common problems when developing a Windows Phone application.

Chapter 4, Working with Team Foundation Server, deals with the source control functionality using Visual Studio ALM. The chapter provides detailed, step-by-step recipes to deal with development issues using a Team Foundation Server with the configuration and easy implementation of a successful TFS.

Chapter 5, Testing Applications Using Visual Studio 2013, provides a deeper insight on testing a full-fledged application. This chapter provides all the relevant information that you need to know about testing inside Visual Studio, enabling you to write tests quickly in easy steps, and a clear understanding of what is going on under the hood.

Chapter 6, Extending the Visual Studio IDE, focuses on presenting interesting facts related to adding more functionalities in Visual Studio. The need to customize Visual Studio itself is sometimes necessary to allow a developer to customize the tools inside the integrated environment. This chapter provides you with points that will help in dealing with extensions on the Visual Studio IDE in easy steps.

Chapter 7, Understanding Cloud Computing with Windows Azure, demonstrates the Microsoft implementation of cloud computing, enabling you to quickly adapt Azure in your own solution in easy steps. This chapter gives recipes to help a developer port their existing on-premise applications to the cloud.

What you need for this book

The basic software requirements for this book are as follows:

  • Microsoft .NET Framework 4.5 and higher

  • Microsoft Visual Studio 2013

  • Windows 8 operating system

  • A Windows Phone to deploy Windows Phone apps

  • Latest web browsers

  • An account on Windows Azure

Who this book is for

The purpose of this book is to give you ready-made steps in the form of recipes to develop common tasks that, as a developer, you might often be required to access. This book utilizes its chapters skillfully to provide as much information as it can and also in as much detail as necessary to kick-start the operation. This book also delivers in-depth analysis of some advanced sections of the subject to get you to an expert's level. If you are a beginner in the development environment and want to gain expertise on the ongoing technologies in the market, this book is ideal for you. Even for architects and project managers, this book is a guide to enriching your existing knowledge.

This book uses C# and Visual Studio 2013 with Windows 8 (as the operating system) in the examples. Even though you do not require any knowledge of Visual Studio to start, you are expected to have some basic theoretical and practical overall experience on the subjects to understand the recipes. The book bridges the gap between a beginner and an advanced developer.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The program will pause during the first Run method."

A block of code is set as follows:

static void Main()
{
    Thread.CurrentThread.Name = "Main Thread";
    Thread t1 = new Thread(new ThreadStart(Run));
    t1.Name = "Thread 1";
    Thread t2 = new Thread(new ThreadStart(Run));
    t2.Name = "Thread 2";
    t1.Start();
    t2.Start();
    Run();
}
static void Run()
{
    Console.WriteLine("hello {0}!", Thread.CurrentThread.Name);
    Thread.Sleep(1000);
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

    // Type 'Abhishek' in 'txtInput' text box
    uITxtInputEdit.Text = this.ReverseStringTestParams.UITxtInputEditText;

Any command-line input or output is written as follows:

ALTER DATABASE MyDatabase MODIFY (EDITION='BUSINESS', MAXSIZE=100GB)

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "You can declare a local variable using the Watch window and use it in the conditions."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.