Book Image

.NET Core 2.0 By Example

By : Neha Shrivastava, Rishabh Verma
Book Image

.NET Core 2.0 By Example

By: Neha Shrivastava, Rishabh Verma

Overview of this book

With the rise in the number of tools and technologies available today, developers and architects are always exploring ways to create better and smarter solutions. Before, the differences between target platforms was a major roadblock, but that's not the case now. .NET Core 2.0 By Example will take you on an exciting journey to building better software. This book provides fresh and relevant content to .NET Core 2.0 in a succinct format that’s enjoyable to read. It also delivers concepts, along with the implications, design decisions, and potential pitfalls you might face when targeting Linux and Windows systems, in a logical and simple way. With the .NET framework at its center, the book comprises of five varied projects: a multiplayer Tic-tac-toe game; a real-time chat application, Let'sChat; a chatbot; a microservice-based buying-selling application; and a movie booking application. You will start each chapter with a high-level overview of the content, followed by the above example applications described in detail. By the end of each chapter, you will not only be proficient with the concepts, but you’ll also have created a tangible component in the application. By the end of the book, you will have built five solid projects using all the tools and support provided by the .NET Core 2.0 framework.
Table of Contents (16 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Installing .NET Core 2.0 and tools (Linux)


To install Visual Studio Code in Linux, download the .deb (32 bit) file from http://code.visualstudio.com/download, as shown in the following screenshot:

Open the folder location the .deb file has been downloaded to. Right-click and select Open in Terminal. This will open Terminal from this location. Run the following command:

sudo dpkg -i <fileName>.deb

<fileName>: Enter the filename that was downloaded, which is code_1.15.1-1502903950_i386.deb in our case, as shown in the following screenshot:

Right-click on the Downloads folder, and select Open in Terminal. It will display the following terminal window:

It may show error messages stating that dependencies have not been installed. Run the following command to install the dependencies:

sudo apt-get install -f

This will complete the installation of Visual Studio Code in this Ubuntu machine.

Now, let's install the .NET Core 2.0 SDK. Open the folder location where the dotnet-sdk-2.0.0 file is downloaded. Right-click and select Open in Terminal. It will open Terminal from this location. Run the following command:

 sudo apt-get install dotnet-sdk-2.0.0

Congratulations! We are all set to run Visual Studio Code! Please refer to the Installing Visual Studio Code section of this chapter to get an overview of Visual Studio Code.

Open Extensions View from the Visual Studio Code activity bar. Search F# and install the Ionide-fsharp extension for F# language support, as we discussed in the Installing Visual Studio Code section under the Install .NET Core 2.0 and tools (Windows) section.

Now, search C# and install the C# for Visual Studio Code (powered by OmniSharp) extension for C# language support.