C# Batchfile JavaScript TypeScript HTML CSS Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ADONET chapter reorg Feb 17, 2018
API add missing code Mar 6, 2018
ASPNETCore chapter reorg Feb 17, 2018
AdvancedWindows remove not used project Apr 10, 2018
Arrays update chapter readme Jan 24, 2018
Async update chapter readme Jan 24, 2018
BotAndCognitive chapter reorg Feb 17, 2018
Collections naming conventions Feb 9, 2018
Composition chapter reorg Feb 17, 2018
CoreCSharp update chapter readme Jan 24, 2018
Delegates update chapter readme Jan 24, 2018
DependencyInjection readme for dependency injection Feb 1, 2018
Diagnostics chapter reorg Feb 17, 2018
EFCore chapter reorg Feb 17, 2018
ErrorsAndExceptions update chapter readme Jan 24, 2018
FilesAndStreams package updates May 9, 2018
FunctionalProgramming update chapter readme Jan 24, 2018
Generics update chapter readme Jan 24, 2018
HelloWorld update chapter readme Jan 24, 2018
LINQ static methods Feb 10, 2018
Libraries chapter readme files Jan 24, 2018
Localization code simplification May 6, 2018
MVC chapter reorg Feb 17, 2018
Memory memory Jan 24, 2018
MoreWindows chapter reorg Feb 17, 2018
Networking cleanup Jan 25, 2018
ObjectOrientation update chapter readme Jan 24, 2018
ObjectsAndTypes update chapter readme Jan 24, 2018
OperatorsAndCasts update chapter readme Jan 24, 2018
Patterns chapter reorg Feb 17, 2018
PatternsXamarinShared fix navigation Feb 3, 2018
ReflectionAndDynamic update chapter readme Jan 24, 2018
Security package updates May 9, 2018
SignalRAndWebHooks update to .NET Core 2.1 preview 1 Mar 5, 2018
SpecialCollections update chapter readme Jan 24, 2018
StringsAndRegularExpressions remove empty lines Feb 9, 2018
Styles chapter reorg Feb 17, 2018
Tasks package updates Jan 24, 2018
Tests chapter reorg Feb 17, 2018
VisualStudio chapter readme files Jan 24, 2018
Windows package updates May 9, 2018
XMLandJSON chapter reorg Feb 17, 2018
Xamarin images for Xamarin.Forms Feb 21, 2018
.gitignore Initial commit Jun 11, 2017
BookUpdates.md add book updates - updated localization sample May 5, 2018
LICENSE Initial commit Jun 11, 2017
README.md update readme Mar 6, 2018
README.txt readme in simple txt format Mar 6, 2018

README.md

Professional C# 7 and .NET Core 2.0

Code samples for the Wrox Press book Professional C# 7 and .NET Core 2.0

To compile and run the samples, you need Visual Studio 2017, Visual Studio for Mac, or Visual Studio Code.

You can download these tools here: Visual Studio.

The console app samples can be used on Windows, Linux, or Mac. Here is the installation procedure for .NET Core: .NET on Linux

If you're using Visual Studio, Update 5 or a later version of Visual Studio 2017 is needed. With the Visual Studio Installer you need to select this workload to compile most of the code samples: .NET Core cross-platform development.

ASP.NET Core samples need this workload: ASP.NET and web development.

Windows app samples require Windows 10, Windows 10 Fall Creators Update (build 16299) or a later version. With the Windows app samples, Visual Studio 2017 Update 5 is required with this workload: Universal Windows Platform Development.

Compiling the Xamarin samples, you have different options using a Mac or a Windows system:

  • On the Mac, you can install Visual Studio for Mac to compile the Android and iOS samples.

  • On Windows 10, you can use Visual Studio 2017. To compile the iOS samples, you also need a Mac. Using only Windows 10, you can compile and run the Windows and Android code samples.

  • Visual Studio 2017 with the .NET Core workload

Here's the list of chapters and the folders for the code samples:

  • Chapter 1 - .NET Applications and Tools (HelloWorld)
  • Chapter 2 - Core C# (CoreCsharp)
  • Chapter 3 - Objects and Types (ObjectsAndTypes)
  • Chapter 4 - Object-Oriented Programming with C# (ObjectOrientation)
  • Chapter 5 - Generics (Generics)
  • Chapter 6 - Operators and Casts (OperatorsAndCasts)
  • Chapter 7 - Arrays (Arrays)
  • Chapter 8 - Delegates, Lambdas, and Events (Delegates)
  • Chapter 9 - Strings and Regluar Expressions (StringsAndRegularExpressions)
  • Chapter 10 - Collections (Collections)
  • Chapter 11 - Special Collections (SpecialCollections)
  • Chapter 12 - Language Integrated Query (LINQ)
  • Chapter 13 - Functional Programming with C# (FunctionalProgramming)
  • Chapter 14 - Errors and Exceptions (ErrorsAndExceptions)
  • Chapter 15 - Asynchronous Programming (Async)
  • Chapter 16 - Reflection, Metadata, and Dynamic Programming (ReflectionAndDynamic)
  • Chapter 17 - Managed and Umanaged Memory (Memory)
  • Chapter 18 - Visual Studio 2017 (VisualStudio)
  • Chapter 19 - Libraries, Assemblies, Packages, and NuGet (Libraries)
  • Chapter 20 - Dependency Injection (DependencyInjection)
  • Chapter 21 - Tasks and Parallel Programming (Tasks)
  • Chapter 22 - Files and Streams (FilesAndStreams)
  • Chapter 23 - Networking (Networking)
  • Chapter 24 - Security (Security)
  • Chapter 25 - ADO.NET and Transactions (ADONet)
  • Chapter 26 - Entity Framework Core (EFCore)
  • Chapter 27 - Localization (Localization)
  • Chapter 28 - Testing (Tests)
  • Chapter 29 - Tracing, Logging, and Analytics (Diagnostics)
  • Chapter 30 - ASP.NET Core (ASPNETCore)
  • Chapter 31 - ASP.NET Core MVC (MVC)
  • Chapter 32 - Web API (API)
  • Chapter 33 - Windows Apps (Windows)
  • Chapter 34 - Patterns with XAML Apps (Patterns and PatternsXamarinShared)
  • Chapter 35 - Styling Windows Apps (Styles)
  • Chapter 36 - Advanced Windows (AdvancedWindows)
  • Chapter 37 - Xamarin.Forms (Xamarin and PatternsXamarinShared)

Bonus Chapters

  • Bonus Chapter 1 - Composition (Composition)
  • Bonus Chapter 2 - XML and JSON (XMLandJSON)
  • Bonus Chapter 3 - SignalR and WebHooks (SignalRAndWebHooks)
  • Bonus Chapter 4 - Bots and Cognitive Services (BotAndCognitive)
  • Bonus Chapter 5 - More Windows Apps Features (MoreWindows)

In case you've some issues to compile and run the samples, create an issue in the Professional C# 7 GitHub repository.

Have fun coding and enjoy the book!

Christian