開始使用 C#Get started with C#

本節提供簡短且簡單的教學課程,可讓您使用 C# 和 .NET Core 快速建置應用程式。This section provides short, simple tutorials that let you quickly build an application using C# and .NET Core. 本節內容涵蓋適用於 Visual Studio 2017 和 Visual Studio Code 的使用者入門主題。There are getting started topics for Visual Studio 2017 and Visual Studio Code. 這些文章假設您有一些程式設計經驗。These articles assume some programming experience. 如果您是程式設計的新手,請嘗試我們的 C# 簡介互動式教學課程。If you are new to programming, try our introduction to C# interactive tutorials.

我們將提供下列主題:The following topics are available:

  • C# 語言和 .NET Framework 簡介Introduction to the C# Language and the .NET Framework

    提供 C# 語言和 .NET 的概觀。Provides an overview of the C# language and .NET.

  • 在 Visual Studio 2017 中使用 .NET Core 建置 C# Hello World 應用程式Building a C# Hello World application with .NET Core in Visual Studio 2017

    Visual Studio 2017 (最新版的 Visual Studio) 可讓您從適用於 Windows 的整合式開發環境中,針對應用程式撰寫程式碼,並進行編譯、執行、偵錯、程式碼剖析及發行。Visual Studio 2017, the latest release of Visual Studio, lets you code, compile, run, debug, profile, and publish your applications from an integrated development environment for Windows.

    此主題可讓您建立並執行簡單的 Hello World 應用程式,然後修改它以執行稍微更具互動性的 Hello World 應用程式。The topic lets you create and run a simple Hello World application and then modify it to run a slightly more interactive Hello World application. 當您完成建置並執行應用程式之後,您也可以學習如何為應用程式偵錯,以及如何發行應用程式,讓它可在任何 .NET Core 支援的平台上執行。Once you've finished building and running your application, you can also learn how to debug it and how to publish it so that it can be run on any platform supported by .NET Core.

  • 在 Visual Studio 2017 中使用 C# 和 .NET Core 建置類別庫Building a class library with C# and .NET Core in Visual Studio 2017

    類別庫讓您能夠定義可從另一個應用程式呼叫的型別和型別成員。A class library lets you define types and type members that can be called from another application. 此主題可讓您建立具有單一方法的類別庫,來決定字串是否要以大寫字元為開頭。This topic lets you create a class library with a single method that determines whether a string begins with an uppercase character. 當您完成建置類別庫之後,可以開發單元測試以確保該類別庫可如預期般運作,然後您可以讓想要取用它的應用程式能夠使用該類別庫。Once you've finished building the library, you can develop a unit test to ensure that it works as expected, and then you can make it available to applications that want to consume it.

  • C# 與 Visual Studio Code 使用者入門Get started with C# and Visual Studio Code

    Visual Studio Code 這個免費的程式碼編輯器已經過最佳化,可用於建置新式 Web 和雲端應用程式並為其偵錯。Visual Studio Code is a free code editor optimized for building and debugging modern web and cloud applications. 支援 IntelliSense 並適用於 Linux、macOS 和 Windows。It supports IntelliSense and is available for Linux, macOS, and Windows.

    此主題說明如何使用 Visual Studio Code 和 .NET Core,來建立並執行簡單的 Hello World 應用程式。This topic shows you how to create and run a simple Hello World application with Visual Studio Code and .NET Core.

  • C# 程式設計指南C# Programming Guide

    提供 C# 程式設計概念的資訊,並說明如何在 C# 中執行各種工作。Provides information about C# programming concepts, and describes how to perform various tasks in C#.

  • C# 參考C# Reference

    提供 C# 關鍵字、運算子、前置處理器指示詞、編譯器選項以及編譯器錯誤和警告的詳細參考資訊。Provides detailed reference information about C# keywords, operators, preprocessor directives, compiler options, and compiler errors and warnings.

  • 逐步解說Walkthroughs

    提供使用 C# 之程式設計逐步解說及個別逐步解說之簡短描述的連結。Provides links to programming walkthroughs that use C# and a brief description of each walkthrough.

另請參閱See also