Skip to content
This repository was archived by the owner on Apr 11, 2021. It is now read-only.
This repository was archived by the owner on Apr 11, 2021. It is now read-only.

Code runs on Linux #22

@christiannagel

Description

@christiannagel

Writing the book I was making sure the code runs both on the .NET Framework as well as on .NET Core. There haven't been many issues, but a few differences that need to be compiled differently using e.g. #if NET46, e.g. with the reflection samples.

Compiling the source code with the .NET Framework requires adding net46 to the framework section to project.json. This entry in project.json hinders the programs compiling on Linux, as .NET Framework is not available on Linux.

As many APIs from the .NET Framework are brought back into .NET Core see the .NET Core Roadmap, the direction of the samples can change.

For making sure the code compiles and runs (as far as possible) on Linux, I'm removing NET46 from project.json. While running the applications on Linux, I'll also add information what code chapters only run on Windows, and what code chapters run on Windows and Linux.

For Linux I'm using Ubuntu 16.04.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions