Coder Social home page Coder Social logo

lygwys / essentialcsharp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intellitect/essentialcsharp

0.0 0.0 0.0 3.28 MB

This project contains the source code for the book Essential C# by Mark Michaelis (Addison-Wesley).

License: MIT License

C# 92.22% PowerShell 7.75% Shell 0.02% Batchfile 0.01%

essentialcsharp's Introduction

EssentialCSharp

Build and Test v9.0

This project contains the source code for the book Essential C# by Mark Michaelis (Addison-Wesley).

Sample Code Guide

Ensure one of the following frameworks is installed at the latest version.

  • .NET (All) - This project is currently tested against .NET 5.0 and .NET Core 3.1

Visual Studio 2019 contains the .NET Framework runtime as well as gives options to install .NET Core. Not to mention, it's a great IDE that makes it easy to get started.

Download the Code

Local Copy

Open a console and change the working directory to the desired project location.

git clone https://github.com/IntelliTect/EssentialCSharp.git
cd ./EssentialCSharp/

The source code is the most recently published edition of the book and this is the default branch following the clone command. However, you can switch to a different branch, v9.0 for example, with the command:

git checkout v9.0

Build

EssentialCSharp.sln is the project's main solution, open this with Visual Studio and Build All.

For those using the command line, build all the projects from the /EssentialCSharp/ directory with these commands:

dotnet restore EssentialCSharp.sln
dotnet build EssentialCSharp.sln

Run

Navigate to an individual project in the /EssentialCSharp/src/(project)/ directory and run the code. The example below is for Chapter01 with the user entering 1.1 to execute the listing number.

To run a listing you must run the the project that contains it. For example, to run Listing 1.1 you must navigate to Chapter01 in the Solution Explorer and set Chapter01 as the startup project. In Rider this can be done by locating the desired project in the Explorer tab, right clicking on the project and clicking run.

$ cd ./src/Chapter01/
$ dotnet run
Enter the listing number to execute (e.g. For Listing 1.1 enter "1.1"): 1.1

____________________________

Hello. My name is Inigo Montoya.

____________________________
End of Listing 01_01
Press any key to exit.
$

Documentation for .NET CLI tools can be found here:

https://docs.microsoft.com/en-us/dotnet/core/tools/

Testing

To run all the tests, run dotnet test on the command prompt in the EssentialCSharp solution directory on your local computer.

essentialcsharp's People

Contributors

adcombs avatar andralee avatar ascott18 avatar atheaven avatar benjaminmichaelis avatar cosborn2 avatar dependabot[bot] avatar espence2003 avatar finlaysonchris avatar grantdwoods avatar hannamichaelis avatar jaspet avatar jenny-curry avatar kamonson avatar keboo avatar kodybrown avatar markmichaelis avatar mocanu-razvan avatar nlundby avatar salimgangji avatar twofingerrightclick avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.