Dirk Strauss

Getting Started with Visual Studio 2019

Learning and Implementing New Features

Dirk Strauss
Uitenhage, South Africa
ISBN 978-1-4842-5448-6e-ISBN 978-1-4842-5449-3
© Dirk Strauss 2020
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail [email protected], or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.

To Adele, Tristan, and Irénéé.

My everything for you, always!

Introduction

Visual Studio 2019 is the next version of the stellar development tool we love to use. This book is for folks ready to get to know the IDE a little bit better. It aims to get you started on the road to exploring Visual Studio 2019, beyond what you are already comfortable with.

The book starts off with installing Visual Studio and adding workloads. Then you explore the IDE a bit more before having a look at the existing (and some new) features in Visual Studio. After that, a few productivity tips are thrown in for good measure.

Being able to effectively work with different project types and knowing when to use which are explored in a bit more detail in Chapter 2 . We will also have a look at using NuGet packages and how to manage them. We then see how to make use of project templates and then explore using and creating code snippets. This chapter covers many of the basics that are essential to working with Visual Studio and include using bookmarks, code shortcuts, the Server Explorer, and other Visual Studio Windows.

In Chapter 3 , we will take a closer look at debugging techniques such as using breakpoints, setting conditional breakpoints, breakpoint actions, and labels. We will see how to effectively use data tips as well as the DebuggerDisplay attribute. We then take a closer look at diagnostic tools and the Immediate Window. Finally, to close off the debugging chapter, we see how to attach to a running process and how to use remote debugging.

The next chapter will introduce you to creating and running unit tests. We will also see how to create live unit tests, how to use IntelliTest to generate unit tests, and how to measure code coverage in Visual Studio.

Finally, we look at working with Git and GitHub. We see how to create a GitHub account and what creating and cloning a repository involves. You will learn how to commit changes in code to the repository and how to create a branch of your code when you need to work on a new feature in isolation. Then we will look at creating a pull request and how these pull requests are handled. Lastly, we have a look at the benefit of working with stashes.

If you need a nice reference book that deals exclusively with (and only with) Visual Studio, then have a look at what this book has to offer you. If you spend any time using Visual Studio or want to learn how working with Visual Studio 2019 can increase your productivity, then this book will make a perfect reference book for your office.

Acknowledgments

First off, I would like to thank my wife and children for their support while writing this book. I would not have been able to do it without you on my side.

I would also like to thank the team at Apress for their support of this book and for turning my vision into reality. It is a topic that I have wanted to write about for a very long time.

I want to thank James McCaffrey for his help and dedication during the review of this book. Technically reviewing a book such as this is not easy, and his feedback and suggestions are always appreciated and highly valued.

Last, but not least, I want to thank you for reading this book. Your passion to know more is what drives me to learn more, and impart what I learn. It’s a symbiotic relationship that benefits us as we both grow and become better at what we do.

Table of Contents

Index 261

About the Author and About the Technical Reviewer

About the Author

Dirk Strauss
../images/487681_1_En_BookFrontmatter_Figb_HTML.jpg

is a software developer from South Africa with over 13 years of programming experience. He has extensive experience in SYSPRO Customization, with C# and web development being his main focus. He studied at the Nelson Mandela University where he wrote software part-time to gain a better understanding of the technology. He remains passionate about writing code and imparting what he learns with others.

 

About the Technical Reviewer

James McCaffrey
../images/487681_1_En_BookFrontmatter_Figc_HTML.jpg

works for Microsoft Research in Redmond, Wash. James has a PhD in cognitive psychology and computational statistics from the University of Southern California, a BA in psychology, a BA in applied mathematics, and an MS in computer science. James worked on several key products including Azure and Bing. James is also the Senior Technical Editor for MicrosoftMSDN Magazine , the most widely read technical journal in the world.

 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.238.76