• Stars
    star
    381
  • Rank 111,950 (Top 3 %)
  • Language
    C#
  • License
    MIT License
  • Created almost 12 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

EssentialCSharp

Build and Test v11.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 7.0 and .NET 6.0.
  • Visual Studio contains .NET Core to get up and running. 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, v11.0 for example, with the command:

git checkout v11.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.

More Repositories

1

Coalesce

Quickly build amazing web apps
C#
61
star
2

IntelliTect.AspNetCore.SignalR.SqlServer

A Microsoft SQL Server backplane for ASP.NET Core SignalR.
C#
35
star
3

AspNetCore.TestHost.WindowsAuth

Implements Windows authentication for ASP.NET Core TestServer-based integration test projects.
C#
25
star
4

PowerStudio

PowerShell Integration for Visual Studio 2010
C#
21
star
5

CodingGuidelines

A repository to contain IntelliTect's tools for coding conventions
C#
12
star
6

vuetify2-component-types

Component types for Volar intellisense with Vuetify 2 and Vue 2.7
JavaScript
10
star
7

TestTools

A collection of tools for aiding in test automation
C#
10
star
8

Articles

Formerly the source code from various articles and blogs written by Mark Michaelis and the rest of the IntelliTect team. The contents of this repository have been moved to https://github.com/IntelliTect-Samples
PowerShell
9
star
9

PSToolbox

PowerShell scripts and modules on PowerShell gallery
PowerShell
8
star
10

EssentialCSharp.Web

The web side of essentialcsharp.com
C#
6
star
11

Coalesce.Starter

A barebones Coalesce Knockout project which can be built upon
C#
5
star
12

IntelliTect.Snippets

C#
4
star
13

journey

A simple JavaScript framework to transform MVC pages into a left-to-right SPA
C#
4
star
14

AzureDevOps-Tools

Scripts and documenation for Azure DevOps primarily focused on project to project migrations
PowerShell
3
star
15

Multitool

Library of useful additions to your C# application
C#
2
star
16

TfsHistory

PowerShell script to get the change history of a project using TFS version control as a CSV file.
PowerShell
2
star
17

Chocolatey.Packages

A Project to store the source code for projects posted to Chocolatey
PowerShell
1
star
18

snug-serverless-demos

C#
1
star
19

ExcelGantt

Compare schedules with an automatic gantt chart in Excel.
1
star
20

text-trolley-hackathon2022

C#
1
star
21

LooffCarousel.RingTargetDetector

An Arduino project for detecting successful tosses of rings and rewarding the throwers with LED and sound feedback
C++
1
star
22

blog-resources

Code resources for blog posts on intellitect.com
HCL
1
star
23

Coalesce.Vue.Template

A dotnet CLI template for quickly starting a new Coalesce project with Vue
C#
1
star
24

ListingManager

Tool used to expose useful functionality to IntelliTect/EssentialCSharp collaborators
C#
1
star
25

Mongo-Training

Training resources for using MongoDB in a Visual Studio C# context
C#
1
star
26

IntellitectTerminal

IntelliTect's Web Based Console
C#
1
star
27

Coalesce.KnockoutJS.Template

A dotnet CLI template for quickly starting a new Coalesce project with KnockoutJS
C#
1
star
28

EssentialCSharp.Status

πŸ“ˆ Uptime monitor and status page for essentialcsharp.com
Markdown
1
star
29

TestTools.Console

TestTools.Console is a simple end-to-end test framework for .NET console applications.
C#
1
star