更新时间:2021-07-02 22:32:06
封面
版权信息
Credits
About the Author
About the Reviewers
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
Part 1 – C# 7.1
Part 2 – .NET Core 2.0 and .NET Standard 2.0
Part 3 – App Models
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
Hello C#! Welcome .NET Core!
Setting up your development environment
Using alternative C# IDEs
Deploying cross-platform
Installing Microsoft Visual Studio 2017
Choosing workloads
Choosing additional components
Installing Microsoft Visual Studio Code
Installing Microsoft Visual Studio Code for macOS
Installing .NET Core SDK for macOS
Installing Node Package Manager for macOS
Installing the Visual Studio Code extension for C#
Installing Visual Studio for Mac
Installing Xcode
Downloading and installing Visual Studio for Mac
Understanding .NET
Understanding .NET Framework
Understanding the Mono and Xamarin projects
Understanding .NET Core
Understanding .NET Standard
Understanding .NET Native
Comparing .NET technologies
Writing and compiling code using the .NET Core CLI tool
Writing code using a simple text editor
If you are using Windows Notepad
If you are using macOS TextEdit
Creating and compiling apps using the .NET Core CLI tool
Creating a console application at Command Prompt
Restoring packages compiling code and running the application
Fixing compiler errors
Understanding intermediate language
Writing and compiling code using Visual Studio 2017
Writing code using Microsoft Visual Studio 2017
Compiling code using Visual Studio 2017
Fixing mistakes with the error list
Adding existing projects to Visual Studio 2017
Autoformatting code
Experimenting with C# Interactive
Other useful windows
Writing and compiling code using Visual Studio Code
Writing code using Visual Studio Code
Compiling code using Visual Studio Code
Writing and compiling code using Visual Studio for Mac
Next steps
Managing source code with GitHub
Using Git with Visual Studio 2017
Using the Team Explorer window
Cloning a GitHub repository
Managing a GitHub repository
Using Git with Visual Studio Code
Configuring Git at the command line
Managing Git with Visual Studio Code
Practicing and exploring
Exercise 1.1 – Test your knowledge
Exercise 1.2 – Practice C# anywhere
Exercise 1.3 – Explore topics
Summary
Part 1 C# 7.1
Speaking C#
Understanding C# basics
Using Visual Studio 2017
Using Visual Studio Code on macOS Linux or Windows
C# grammar
Statements
Comments
Blocks
C# vocabulary
Help for writing correct code
Verbs are methods
Nouns are types fields and variables
Revealing the extent of the C# vocabulary
Building and running with Visual Studio 2017
Building and running with Visual Studio Code
Adding more types with Visual Studio 2017 and Visual Studio Code
Declaring variables
Naming variables