ebook img

Visual Studio 2013 and .NET 4.5 Expert Cookbook PDF

308 Pages·2014·4.759 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Visual Studio 2013 and .NET 4.5 Expert Cookbook

Visual Studio 2013 and .NET 4.5 Expert Cookbook Over 30 recipes to successfully mix the powerful capabilities of Visual Studio 2013 with .NET 4.5 Abhishek Sur BIRMINGHAM - MUMBAI Visual Studio 2013 and .NET 4.5 Expert Cookbook Copyright © 2014 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: April 2013 Second edition: September 2014 Production reference: 1190914 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-84968-972-4 www.packtpub.com Cover image by Abhishek Pandey ([email protected]) Credits Author Copy Editors Abhishek Sur Roshni Banerjee Gladson Monteiro Reviewers Adithi Shetty Carlos Hulot Darren Kopp Proofreaders Sergey Kosivchenko Simran Bhogal André Matos Maria Gould Anand Narayanaswamy Ameesha Green Paul Hindle Acquisition Editor Kevin Colaco Indexer Hemangini Bari Content Development Editor Dayan Hyames Graphics Sheetal Aute Project Coordinator Ronak Dhruv Venitha Cutinho Abhinash Sahu Technical Editors Production Coordinator Manan Badani Kyle Albuquerque Shashank Desai Dennis John Cover Work Kyle Albuquerque About the Author Abhishek Sur has been a Microsoft MVP since 2011. He is currently working as a Product Head with Insync Tech-Fin Solutions Pvt Ltd. He has profound theoretical insight and years of hands-on experience in different .NET products and languages. Over the years, he has helped developers throughout the world with his experience and knowledge. He owns a Microsoft User Group in Kolkata named Kolkata Geeks and regularly organizes events and seminars in various places to spread .NET awareness. A renowned public speaker, voracious reader, and technology buff, Abhishek's main interest lies in exploring the new realms of .NET technology and coming up with priceless write-ups on the unexplored domains of .NET. He is associated with Microsoft's Insider list on WPF and C# and stays in touch with Product Group teams. He holds a Master's degree in Computer Application along with various other certificates to his credit. Abhishek is a freelance content producer, developer, and site administrator. His website www.abhisheksur.com guides both budding and experienced developers in understanding the details of languages and latest technologies. He has a huge fan following on social networks. You can reach him at [email protected], get online updates from his Facebook account, or follow him on Twitter @abhi2434. About the Reviewers Carlos Hulot has been working in the IT industry for more than 20 years in different capabilities, from software development and project management, to IT marketing / product development and management. He has worked for multinational companies such as Royal Philips Electronics, PricewaterhouseCoopers, and Microsoft. Currently, he is working as an independent IT consultant. Carlos is a Computer Science lecturer at two Brazilian universities and holds a PhD in Computer Science and Electronics from University of Southampton, UK, and a BSc degree in Physics from University of São Paulo, Brazil. I would like to thank my wife, Mylene Melly, for her continuous support. I would also like to thank my many colleagues over the years that have made it possible for me to learn what I know now about software development and the computer industry. Darren Kopp is a father, husband, software engineer, and gamer. He started programming when creating a website for his clan in the game Tribes using ASP and then moved on to ASP.NET when .NET 1.1 was released. Darren started professional development work with the golf industry, developing systems ranging from e-commerce solutions for golf shops to systems that tracked the swing profiles of golfers. He then moved on to the construction industry where he developed software that integrated payroll, human resources, service management, and project management. Darren currently works for DevResults, which provide web-based solutions to the international development and humanitarian communities. When he isn't coding or spending time with his family, you can find him on Twitter making jokes and playing Team Fortress 2 and Battlefield 4. Sergey Kosivchenko is a 23-year-old software developer in the field of automation of business processes in manufacturing with about 5 years of experience. C#, WPF, and Entity Framework are some of the main tools used by Sergey to implement solutions. He spends most of his free time gaining new knowledge about software development and computer technologies. For over 10 years, Sergey has been working in a company that develops web- and client-side applications and has now become one of the leaders in software development in the Southern Federal District of Russian Federation. André Matos is a senior software engineer who discovered his passion for technology when he was a teenager. He got his first computer when he was 16, discovered the Internet a year later, and decided that he must know more about technology. He finished his MSc back in 2012 from a Portuguese university, Instituto Superior de Engenharia de Lisboa, specializing in Geographic Information Systems (GIS) and spatial data exploration. André, now 27 years old, has experience in several technologies and platforms, starting his professional career back in 2008 with a mission to build a website for maps in Portugal to compete against Google Maps. There, he fell in love with JavaScript and GIS. He built the website and a GIS platform to support it and it was a huge success in Portugal. Nowadays, André works for British Sky Broadcasting. His task is to build a video-on-demand service, which will run on multiple platforms. He is responsible for the backend infrastructure and service availability. Apart from the frontend technologies, André is an open source enthusiast with several open source projects hosted on his GitHub repo (http://github.com/apdmatos), and has contributed to other projects, such as jQuery, Ninject, and Underscore. Anand Narayanaswamy, an ASPInsider, works as a freelance writer based in Trivandrum, Kerala, India. He was a Microsoft Most Valuable Professional (MVP) from 2002 to 2011 and had worked as a Chief Technical Editor for www.ASPAlliance.com for a period of 5 years. Anand has also worked as a technical editor for several popular publishers, such as Sams, Addison-Wesley Professional, Wrox, Deitel, Packt Publishing, and Manning. His technical editing skills helped the authors of Sams Teach Yourself the C# Language in 21 Days, Sams; Core C# and .NET: The Complete and Comprehensive Developer's Guide to C# 2.0 and .NET 2.0, Prentice Hall; Professional ADO.NET 2 Programming with SQL Server 2005, Oracle and MySQL, Wrox; ASP.NET 2.0 Web Parts in Action: Building Dynamic Web Portals, Wrox, and Internet and World Wide Web (4th Edition), Deitel, to fine-tune the content. He also contributed articles to the Microsoft Knowledge Base, and sites such as www.c-sharpcorner.com, www.developer.com, and www.codeguru.com, and delivered podcast shows. Anand runs his own blog at LearnXpress (www.learnxpress.com) and provides blog script installation services. He also hosts a video channel at http://tv.learnxpress.com, where you can watch free videos related to Windows, social media, and other related technologies. He is the author and publisher of free LearnXpress study guides that can be downloaded in PDF format directly from his blog. Anand can be reached at [email protected] and will smile if you follow him on Twitter @visualanand. www.PacktPub.com Support files, eBooks, discount offers, and more For support files and downloads related to your book, please visit www.PacktPub.com. Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details. At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks. TM http://PacktLib.PacktPub.com Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books. Why subscribe? f Fully searchable across every book published by Packt f Copy and paste, print, and bookmark content f On demand and accessible via a web browser Free access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view 9 entirely free books. Simply use your login credentials for immediate access. Instant updates on new Packt books Get notified! Find out when new books are published by following @PacktEnterprise on Twitter or the Packt Enterprise Facebook page. Table of Contents Preface 1 Chapter 1: A Guide to Debugging with Visual Studio 7 Introduction 7 Debugging source code using breakpoints 9 Using DataTips during debugging 18 Debugging a multithreaded program 24 Exploring the Command and Immediate windows 28 Making use of IntelliTrace in Visual Studio 31 Debugging a .NET program using the framework library source 35 Debugging a process that is already deployed 37 Chapter 2: Enhancements to WCF 4.5 41 Introduction 41 Understanding Windows Communication Foundation (WCF) by creating a basic application 44 Hosting a WCF service in different hosting environments 56 Streaming data over a network using a WCF service 61 Writing a REST-based WCF service 67 Creating a WCF service using the Open Data Protocol standards 78 Extending a WCF service (service extensibility) 92 Chapter 3: Building a Touch-sensitive Device Application Using Windows Phone 8 101 Introduction 101 Building your first Windows Phone 8 application following the MVVM pattern 103 Working with Launchers and Choosers in Windows Phone 114 Working with relational databases and persistent storage 126 Working with notifications in Windows Phone 143

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.