.NET

.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

Using .NET Core in a "Disconnected" Environment

Rick Wagner

For added security, .NET Core applications that require access to external libraries can be run in a disconnected environment (one without internet access). Here's how.

Red Hat Summit: Developing .NET Core Apps on Red Hat OpenShift
Article

Red Hat Summit: Developing .NET Core Apps on Red Hat OpenShift

Rob Terzi

At Red Hat Summit 2018, Red Hat’s John Osborne and Microsoft’s Harold Wong gave a talk: Developing .NET Core Applications on Red Hat OpenShift. .NET Core 1.0 availability for Linux was announced two years ago, but many developers still have a number of questions about the differences between .NET Framework and .NET Core.

Page Thumbnail
Page

Red Hat Developer Homepage

Join Red Hat Developer for teh software and tutorials to develop cloud applications using Kubernetes, microservices, serverless and Linux.

.NET Core
Article

Developing .NET Core 2.0 Web Applications on OpenShift

Roland Grunberg

Today we're going to create a .NET Core 2.0 Web Application using the JBoss Developer Studio and the aCute plugin (C# application development). We'll deploy our application onto an OpenShift instance and continue to modify it while viewing the changes almost instantly. Although the initial setup will be quite involved, it will only need to be done once. You might imagine that the normal workflow for this would be: Make local changes. Commit + push them to version control. Either...

First steps in integration of Windows and Linux Containers in Red Hat OpenShift
Article

First steps in integration of Windows and Linux Containers in OpenShift

Glenn West

I've started an interesting exploration on the integration of Microsoft Windows Containers and Linux Containers in an OCP Environment. This allows a true bi-modal IT technical implementation by combining the strength of both platforms into one cluster. So, I start this off, with the deployment of an OpenShift Cluster on Azure, using the 3.6 reference architecture . After this is run, I used the Azure Portal to add a Windows Server 2016 Node to the cluster. So if you look...

Remote debug your ASP
Article

Remote debug your ASP.NET Core container on OpenShift with Visual Studio Code

Takayoshi Tanaka

Visual Studio provides a graphical remote debugging ASP.NET Core app with Docker Tools for Windows. Since Visual Studio supports SSH protocol, you can remote debug ASP.NET Core process running on the Linux host. It used to be if you install and setup SSH server on docker container, you can remote debug with Visual Studio. However, it's strongly not recommended due to security reasons. Now I'll explain to you how to remote debug your ASP.NET Core on OpenShift with Visual Studio...

.Net Core
Article

ASP.NET Core Hello World Explained

Tom Deseyn

Most books teaching C# start with a 'Hello World' application. This simple program is used to explain concepts like namespaces , classes , Main and Console.WriteLine . When every line of the code has been dissected, it's clear how it works. It's less obvious for an ASP.NET Core application. We are no longer invoking our code; instead, the ASP.NET Core framework is doing that for us. In this blog post, we'll look at a simple ASP.NET Core application and explain...

Article Thumbnail
Article

Running a NuGet server on OpenShift

Takayoshi Tanaka

When you build your .NET Core project, NuGet packages are retrieved from nuget.org by default. Sometimes, however, you might want to use a local NuGet repository. For example, you may want to: use private NuGet packages, but you don't want anyone except your associates to see them. cache a NuGet repository at a server near your build servers leave your build server disconnected from the Internet. I'll explain how to set up a private NuGet server on OpenShift and how...

.NET Core
Article

Connecting .NET Core to D-Bus

Tom Deseyn

D-Bus is a Linux message bus system. Many system daemons (like systemd, PulseAudio, bluez) and desktop services can be controlled via D-Bus. Some applications can be reached via the global system bus and others are on a per-user-login-session bus. Higher-level bindings are available for various popular frameworks and languages. Tmds.DBus is a .NET implementation. The library is based on dbus-sharp/ndesk-dbus, which target Mono/.NET 2.0. Tmds.DBus leverages async/await (Task-based asynchronous pattern) introduced in .NET 4.5/C# 5.0. The library targets netstandard1.5 which...

.NET Core
Article

Red Hat to sponsor .NET Conf virtual conference - Sept 19-21

Mike Guerette

I am pleased to share that Red Hat is a co-sponsor of .NET Conf this year! .NET Conf September 19-21 ONE WEEK FROM TODAY: .NET Conf is a free, live streamed, 3-day virtual developer event organized by the .NET community. Learn to build for web, mobile, desktop, games, services, libraries and more for a variety of platforms and devices all with .NET. Save the date and tune in! I expect a lot of topics will be around .NET Core 2.0...

.NET Core
Article

Using .NET Core 2.0 and RHEL in Linux Containers

Don Schenck

.NET Core 2.0 represents the maturation of the .NET Core development effort. This, the third release (previous releases being version 1.0 and 1.1), brings nearly 20,000 more APIs and a much richer and deeper developer experience. To put it in the vernacular, .NET Core is ready for prime time. This blog post will show you the critical steps and configurations necessary to use .NET Core 2.0 running on RHEL inside your Linux containers. The Challenge Beginning with .NET Core 2.0...

.NET Core
Article

Quick Introduction of .NET Core 2.0

Don Schenck

If you've been in IT for more than just a few years, you've probably heard the phrase "Wait until the third release" before jumping into a new technology or product. Well, .NET Core had version 1.0 and version 1.1. So here it is, the third release: Introducing .NET Core 2.0. And believe me, now is the time to jump on this bandwagon. You Get An API, Everyone Gets An API What's the big deal about .NET Core 2.0? Well for...

.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...

Article Thumbnail
Article

.NET Core 2.0 - Frequently Asked Questions

mguerett

INTRODUCTION What has Red Hat announced? Red Hat has announced that .NET Core 2.0, an open source major release with significant improvements over the 1.0 and 1.1 releases, is now generally available for Red Hat Enterprise Linux, OpenShift Container Platform, and related platforms. This release brings .NET Core much closer to being aligned with the traditional .NET Framework, with massively expanded API support for .NET Standard 2.0 and far better support for NuGet packages. This release improves the experience of...

.NET Core
Article

Introduction to NuGet with .NET Core on RHEL

Dave Mulford

Introduction to NuGet with .NET Core NuGet is an open source package manager for the .NET Core ecosystem. For those familiar with Red Hat Enterprise Linux (RHEL), you can think of it as the “yum” for pulling libraries into your .NET Core project. Working with NuGet packages in .NET Core applications is accomplished primarily through your project’s .csproj file and the dotnet command-line interface. Repositories Just like RHEL, NuGet has its own repositories to get packages. By default, when the...

.NET Core
Article

Microsoft releases .NET Core 2.0

Mike Guerette

After a number of months with .NET Core 2.0 previews, Microsoft has released .NET Core 2.0. Very exciting for the open source world! If you've not seen Scott Hunter talk about today's announcement, see it here . Red Hat has been offering .NET Core 1.1 for a while now, and we expect many customers to be interested in 2.0. Stay tuned for more.

Advanced Microservices with .NET
Article

Advanced Microservices with .NET

Don Schenck

During Red Hat Summit, this past May I along with Scott Hunter from Microsoft took part in a session titled Microservices and OpenShift with .NET Core and .NET Standard 2.0. I went first and talked about building microservices. This was an overview demonstrating the evolution through running a program at a command line, a .NET Core program in RHEL. Once completed I then showed just how easy it was to take the image and put into OpenShift and scale it...

Video Thumbnail
Video

Install .NET Core on RHEL in under 5 minutes, by Don Schenck.

A lightning talk from Red Hat Summit 2017. Here is the transcription:

[00:11] I have a VM here. Let me just run the .NET command to show you. It's not there, so we're going to install .NET on RHEL. The first thing I'm going to do is become Super User, otherwise I have to type pseudo for every command and that's just a hassle.

[00:33] I'm just going to copy and paste the commands here. The point isn't that I type out every command, the point is that you see it's only a couple of commands to get it installed. The first thing I'll do is get my subscription manager attached to the correct pool of RPMs, that's the packages I pulled down.

[00:49] When you install .NET on RHEL you're getting the package from Red Hat. You're not getting it from Microsoft. We get the source code from Microsoft and then we build it to run on RHEL. Red Hat packages are, I like to say vetted. That is, we test them and make sure they work really well so you're not just pulling down software and hoping it works.

[01:12] Now I'm going to enable the repo. I've attached to it and now I have to enable it. Notice at the end where it says, "RHEL 7 Server..." There's also a work station, and there's also one for an HP [high performance] special computing thing that I'm not really familiar with. The point is you're probably going to use a RHEL server to install .NET.

[01:26] One of the cool things about the new .NET core as opposed to the old one is the new .NET is much smaller. Whereas before, when you installed .NET, you would drop in a DVD, or a CD, and wait forever for it install, and you would get 4 gigabytes of .NET. Now it's just a couple hundred megabytes.

[01:49] I'm going to YUM install this scl utils. It doesn't matter what they do. They just enable installation. Let's just leave it at that. There's nothing to do because I've done that before, but that's OK. It's better to have nothing to do than to skip the step.

[02:08] Now here's the actual install itself. I want you to notice it's just a command line and it's a YUM installed .NET core 1.1, which is version 1.1. It's going to go up to the inner webs and pull down everything it needs to install it.

[02:17] Your limiting factor here is going to be your Internet speed. Other than that, that's it for installing .NET. It really is that small and that fast. After it's installed, you have to enable it to be available in Bash. Once that's done, we'll bring it up and we'll see .NET.

[02:36] One final step here. In just a few minutes we went from not having .NET...I don't know if I can copy and paste here, bear with me.

[02:47] It's enabled. Now we should have .NET command available. There it is. We'll do a .NET new which will create a new program. The first time you do a .NET new it's going to run this little expand. That might be considered the final step of installing .NET, that's it. That's all you have to do to install .NET, that's it.

Thank you.

DotNET Core process image
Article

.NET Core Magic: Develop on one OS, run on another

Don Schenck

I recently attempted to write a blog post about Angular and .NET Core 2.0 [Note: It will be posted as soon as the .NET Core 2.0 RPMs are released], using my Red Hat Enterprise Linux (RHEL) VM as the operating system. Even though the .NET Core 2.0 bits are not available yet from Red Hat, I gave it a shot by using a daily build. When I tried to run the code, however, I got an error related to the...

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...