Mastering Visual Studio 2019
Second Edition
Become proficient in .NET Framework and .NET Core by using advanced coding techniques in Visual Studio
Kunal Chowdhury
BIRMINGHAM - MUMBAI
Mastering Visual Studio 2019Second Edition
Copyright 2019 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 or its
dealers and distributors, will be held liable for any damages caused or alleged to have been 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.
Commissioning Editor: Richa Tripathi
Acquisition Editor: Chaitanya Nair
Content Development Editor: Tiksha Sarang
Senior Editor: Afshaan Khan
Technical Editor: Romy Dias
Copy Editor: Safis Editing
Project Coordinator: Prajakta Naik
Proofreader: Safis Editing
Indexer: Tejal Daruwale Soni
Production Designer: Nilesh Mohite
First published: July 2017
Second edition: August 2019
Production reference: 1080819
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78953-009-4
www.packtpub.com
Packt.com
Subscribe to our online digital library for full access to over 7,000 books and videos, as well as industry-leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and videos from over 4,000 industry professionals.
Improve your learning with Skill Plans built especially for you.
Get a free eBook or video every month.
Fully searchable for easy access to vital information.
Copy and paste, print, and bookmark content.
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.packt.com and, as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.
At www.packt.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.
Contributors
About the author
Kunal Chowdhury is an author, a passionate blogger, and a software engineer by profession. He was a Microsoft MVP from 2010 to 2018. Over the years, he has acquired profound knowledge of various Microsoft products and services, and has helped developers and consumers throughout the world.
As a tech buff, Kunal has in-depth knowledge of C#, XAML, .NET, WPF, Visual Studio, Windows 10, and Azure. He has written many articles on his technical blog (www.kunal-chowdhury.com) for developers and consumers. You can contact him on Twitter (@kunal2383) and become one of his fans.
He has also authored the books Mastering Visual Studio 2017 and Windows Presentation Foundation Development Cookbook, both available from Packt Publishing.
As always, I would like to thank my wife, Manika Paul Chowdhury, and my parents for their continuous support while writing this book. I would also like to thank the publisher for the opportunity, and the reviewers for their valuable feedback.
About the reviewers
Atul Verma is currently a senior consultant with Microsoft and is a graduate from NIT Hamirpur. He has more than 13 years' experience of working on Microsoft technologies and open source software. He has expertise in development of polyglot solutions including Azure, mobile apps, desktop apps, ASP.NET Core, Azure DevOps, Elasticsearch, Kafka, Docker, and Kubernetes across domains including property automation, data visualization, and law enforcement.
His recent technical certifications include Microsoft Certified Azure Developer Associate, MCSD: App Builder and MCSA: Universal Windows Platform. He also contributes to technical communities, blogs, and GitHub repositories.
JaliyaUdagedara is a software engineer originally from Sri Lanka, and is currently based in Auckland, New Zealand. He is a Microsoft MVP and a technology evangelist, mostly working in the Microsoft technology stack. He has found his most significant interest in the world of .NET/.NET Core/ASP.NET/ASP.NET Core and Azure. He has more than 10 years' experience in software development.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Preface
Day by day, a revolution is happening in the computer world; existing technologies are becoming older and obsolete, making way for newer ones. To learn about and work with modern technologies, you will need an updated IDE. Microsoft provides this with what is the most popular IDE among developers , named Visual Studio.
Microsoft released Visual Studio for developers in the year 1997. In the 2002, it first received a flavor of .NET and then it started to be revolutionized, with many new features added to every major version. In Visual Studio 2015, Microsoft added support for .NET Core, which is a cross-platform, free, and open source managed software framework, such as .NET Framework.
Visual Studio 2017, initially known as Visual Studio 15, was released on March 7, 2017. It featured a new installation experience, with which you could install a specific workload or a component that you need to accomplish your work. Apart from this, it also included features such as .NET Core, and support for NGen, EditorConfig, Docker, and Xamarin. It not only had support for Microsoft platforms but also supports Linux app development, C/C++, Cordova, Python, Node.js, and tooling for data science and analytical applications.
Microsoft has now improved Visual Studio 2017, releasing a new version of the IDE, named Visual Studio 2019, which was released on April 2, 2019. With this release, Microsoft improved the IDE and tools needed to build and test applications and games to make Visual Studio enterprise-grade. With new features such as IntelliCode and Live Share, it's now easy to build applications quickly and collaborate easily with team members.
Next page