C#

C# 8 nullable reference types
Article

C# 8 nullable reference types

Tom Deseyn

Explore how C# 8 lets us express whether a variable shouldn’t be null, and when it can be null.

C# 8 default interface methods
Article

C# 8 default interface methods

Tom Deseyn

Explore how C# 8 allows developers to extend an interface and provide a default implementation, then check out the rest of this C# 8 series.

Pattern matching
Article

C# 8 pattern matching

Tom Deseyn

We explore C# 8's extended pattern matching support and compare it to pattern matching in C# 7.

Asynchronous streams
Article

C# 8 asynchronous streams

Tom Deseyn

Explore the new C# 8 asynchronous streams feature in this first article in our series covering the new features available in C# 8.

.NET Core
Article

Using .NET PInvoke for Linux system functions

Tom Deseyn

.NET Platform Invoke (PInvoke) makes it easy to consume native libraries. This article describes how to use PInvoke for Linux system functions.

.NET Core
Article

Announcing .NET Core 2.2 for Red Hat Platforms

Bob Davis

We are very excited to announce the general availability of .NET Core 2.2 for Red Hat Enterprise Linux and OpenShift platforms! This general availability is in lock-step with Microsoft's release yesterday . .NET Core is the open-source, cross-platform .NET platform for building microservices . .NET Core is designed to provide the best performance at scale for applications that use microservices and containers . Libraries can be shared with other .NET platforms, such as .NET Framework (Windows) and Xamarin (mobile applications)...

Red Hat OpenShift
Article

How to call the OpenShift REST API from C#

Takayoshi Tanaka

In this article, I show how you can call the Red Hat OpenShift REST API from your C# code, which is useful for automating tasks. Visual Studio is used to take the REST API definition and create a library you can use in your code. Also shown is how to handle the conversion needed for the JSONpath components.

.NET Core
Article

Announcing .NET Core 2.1 for Red Hat Platforms

Bob Davis +1

We are very pleased to announ ce the general availability of .NET Core 2.1 for Red Hat Enterprise Linux and OpenShift platforms! .NET Core is the open-source, cross-platform .NET platform for building microservices . .NET Core is designed to provide the best performance at scale for applications that use microservices and containers . Libraries can be shared with other .NET platforms, such as .NET Framework (Windows) and Xamarin (mobile applications). With .NET Core you have the flexibility of building and...

.NET Core
Article

Red Hat Releases .NET Core 2.0

Bob Davis

As a follow-up to yesterday’s press release , I am pleased to announce the immediate availability of and support for .NET Core 2.0, the latest version of the open source .NET Core project, on Red Hat’s portfolio of open technologies. A lightweight and modular platform for creating web applications and microservices, .NET Core 2.0 provides significant new developer capabilities while enabling developers to create .NET applications across platforms, and deploy on Red Hat Enterprise Linux, Red Hat OpenShift Container Platform...

DotNET Core process image
Article

From Java to .NET Core, Part 2: Types

Yev Bronshteyn

In my previous post in the series, I discussed some fairly surface-level differences between C#/.NET and Java. These can be important for Java developers transitioning to .NET Core, to create code that looks and feels "native" to the new ecosystem. In this post, we dig beneath the surface, to understand .NET's type system. It is my belief that, with Java in the rear view mirror, the .NET type system is more effective and enjoyable to write on. But you be...

DotNET Core process image
Article

Writing a Linux daemon in C#

Takayoshi Tanaka

When you want to run .NET Core process as a daemon on Red Hat Enterprise Linux, you can create a custom systemd unit. Today I'll write about two examples of custom systemd unit for .NET Core. The one is a oneshot type for running a .NET Core console application and the other is a simple type for running an ASP.NET Core Web application. Oneshot type with a console application Building an app You can use dotnet run in systemd with...

Java to .NET Core
Article

From Java to .NET Core. Part 1

Yev Bronshteyn

There was a time when the word ".NET" was virtually synonymous with bloat, vendor lock-in, and Windows. .NET Core is the exact opposite. It's blazingly fast . It's open source under a permissive license (Mostly MIT , some parts Apache-2.0 ). Unlike some other open-source platforms , .NET Core's Contributor License Agreement does not grant exclusive privileges to a single corporation. .NET Core is cross-platform, allowing you to target Windows, Mac, Docker, and many flavors of Linux. My favorite resource...

DotNET Core process image
Article

Creating Your First .NET Program on Red Hat Enterprise Linux

Don Schenck

Sometimes things are really easy. This is one of those cases. There are only six steps to creating and running your first .NET program on Red Hat Enterprise Linux (RHEL). Install dotnet What's that? You don't have RHEL installed on your Windows PC in a Virtual Machine (VM). That's okay ... I'll wait while you install it. Just follow this video to download and install the Red Hat Development Suite . Okay, now that you have a VM, open PowerShell...

Red Hat Enterprise Linux
Article

Sharing between Windows 10 and your VM

Don Schenck

If you're are anything like me, you find the easiest -- yet still best -- way to get things done. After all, life is too short to write programs using Edlin, so give me Visual Studio Code (VS Code). So, what's an easy way for a Windows .NET developer to write code for Linux? Enter the Red Hat Development Suite, a zero-cost bundle for running Linux on your Windows PC, including running .NET Core. After installing the Red Hat Development...

Creating your first ASP.NET MVC web site on RHEL
Article

Creating your first ASP.NET MVC web site on RHEL

Don Schenck

Follow this blog post, and within minutes you will have an ASP.NET MVC website running on Red Hat Enterprise Linux (RHEL). Yes, I'm talking to you, Windows .NET developer; you're about to double your OS skillset. Let's do this. I'm going to start with some assumptions: You are running Windows. You are not running Linux. Based on those two assumptions, we're going to: Install a RHEL Virtual Machine (VM) on your Windows PC. Start and run the VM. Install .NET...

Red Hat Enterprise Linux
Article

Welcome to Red Hat Enterprise Linux, MSBuild, a build tool for .NET Core CLI!

Takayoshi Tanaka

Microsoft announced the first "alpha" release of the new MSBuild-based .NET Core tools. .NET Core SDK which can be downloaded from the Red Hat Developer Program site consists of .NET Core Runtime and .NET Core command line tools (.NET Core CLI). (Reminder - you must have a Red Hat Enterprise Linux subscription first. If you don't, you can go here for a no-cost subscription.) The MSBuild tool is included in .NET Core 1.0 preview 3 (not in the latest release...

DotNET Core process image
Article

Observations on Porting from .NET Framework to .NET Core

Todd Mancini

You’ve heard that .NET has gone open source. You’ve also heard that it has gone cross-platform. And you’ve even heard that Red Hat is shipping a supported version of .NET on Red Hat Enterprise Linux. So maybe you are thinking to yourself, “wow, this is fantastic! I’m going to copy these EXEs and DLLs of my .NET application over to my Red Hat machine and run them!” Well, unfortunately, it’s not going to be quite that easy. At least not...

Article Thumbnail
Article

Working with OpenShift secrets for ASP.NET Core

Takayoshi Tanaka

If you want to use secret configuration which you don't want to store the code repository during developing ASP.NET Core app, what will you do? ASP.NET Core provides Secret Manager tool. Then how about developing on OpenShift? I'd like to talk about Secret Manager tool and working OpenShift secrets for ASP.NET Core in this blog. Secret Manager tool Let's try to use following the document. At first, make ASP.NET Core web project. Then add Microsoft.Extensions.SecretManager.Tools , Microsoft.Extensions.Configuration.UserSecrets and userSecretsId to...

Article Thumbnail
Article

A step-by-step tutorial for continuous integration with Jenkins for a Red Hat Mobile Native iOS application-Part 1

Juana Nakfour

This post was originally published on redhat.com . Part 1: Adding Unit Tests to Native iOS Red Hat Mobile Application Platform Application A robust and agile mobile application development environment requires continuous integration and delivery. It also requires an integrated and automated unit testing process that helps bring applications to market successfully. This two-part series details my work done at the Red Hat Open Innovation Labs and as a Mobile Technical Account Manager to capture these mobile innovations in a...

Article Thumbnail
Article

P/Invoke in .NET Core on Red Hat Enterprise Linux

Takayoshi Tanaka

P/Invoke(Platform Invocation Service) is one of the features of CLI (Common Language Interface) on .NET Framework. P/Invoke enables managed code to call a native function in DLL (Dynamic Link Library). It's a powerful tool for .NET Framework to execute existing C-style functions easily. .NET Core also has a P/Invoke feature and it means we can call a native function in .so file (Linux) and . file (Max OSX). I will show you the short example P/Invoke in .NET Core on...

DotnetConf 2016 Japan
Article

It's a wrap! dotnetConf 2016 Japan

Takayoshi Tanaka

If you are not already familiar with it, dotnetConf 2016 was an online event about .NET, and it was announced at this event that .NET Core RTM would be released at 6/27, at Red Hat Summit in San Francisco. There are several .NET meetups called dotnetConf.local , of which dotnetConf 2016 Japan is one such event. I had the pleasure of giving a session about .NET Core on Red Hat Enterprise Linux. This event was held with the cooperation of...