.NET

Video Thumbnail
Video

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

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

Video Thumbnail
Video

Run .NET and SQL Server natively on Linux with OpenShift

Red Hat Developer Program

Hear from John Osborne, Sr. Solutions Architect, Red Hat, Harold Wong, Cloud Architect, Microsoft, and Jason Dudash, Specialist Solution Architect, Red Hat in this breakout session at Red Hat Summit 2017 For the past several years, Microsoft's approach has been to make Linux and open source technologies first class citizens in the public cloud. Microsoft engineers participate in key open source communities. In this joint session with Red Hat and Microsoft, we'll demonstrate technologies like .NET and SQL Server running on Red Hat Enterprise Linux-based containers in OpenShift on premise and in Azure. We'll also discuss the development and operational perspectives and things like security patching and scans. https://www.redhat.com/en/summit/2017/agenda/sessions

Video Thumbnail
Video

Microservices and OpenShift with .NET Core and .NET Standard 2.0

Red Hat Developer Program

Hear from Don Schenk, Director of Developer Experience, Red Hat and Scott Hunter, Microsoft in this breakout session at Red Hat Summit 2017. In this session, we’ll show the evolution from a .NET application running on a server to a microservices architecture with zero-downtime deployments—including advanced techniques for optimizing performance. Join this session if you’re ready to apply your .NET skills to microservices and Linux containers. https://www.redhat.com/en/summit/2017/agenda/session

Video Thumbnail
Video

.NET And Java And Containers: It’S A Brave New World (Don Schenck)

Red Hat Developer Program

Containers: they’re all the rage. But you need to stay grounded in trusted technology such as Java and .NET. Wouldn’t it be great if someone showed an example of bringing Java and .NET and containers together? Oh, and don’t be limited to just one technology stack. Well, this is that session. I’ll be using as many technologies as we can cram into 60 minutes to show how open source brings the old and new together to make both even better. You won’t want to miss this.

Video Thumbnail
Video

A Quick Guide To .NET Development On Red Hat Enterprise Linux (Rick Wagner)

Red Hat Developer Program

The partnership between Red Hat and Microsoft brings new possibilities for application development and deployment. .NET has long been the application platform for Microsoft developers, and for the first time it is now available to Red Hat Enterprise Linux users. In this session, we'll gently introduce .NET development, showing you the primary components and how they can be used to develop applications of your own. We'll also introduce Red Hat Enterprise Linux on Microsoft Azure, and discuss the application development process and usage of the tools essential for .NET applications. You'll leave with all you need to begin writing simple .NET applications using Red Hat Enterprise Linux for Microsoft Azure.

Video Thumbnail
Video

Getting started on .NET for Red Hat Developer Program (Jon Galloway & Scott Hunter)

Red Hat Developer Program

C# is a modern, advanced general-purpose programming language and is now fully open source and supported on Linux. In this session, you'll learn how to be productive with the new, modern C# on Linux. See what it's like building high performance web workloads in ASP.NET. Learn about the tooling support available to you, including how to configure your favorite editor. Check out the improved DevOps flows enabled by the full stack app, local deployment, and native compilation. And more.

Video Thumbnail
Video

OpenShift and Microsoft .NET in Action

Red Hat Developer Program

We are collaborating with Uhuru Software to bring Microsoft .NET and SQL Server capabilities to OpenShift, as an open source community-driven effort in OpenShift Origin. The demo will show the work done to date and how easy it is to deploy a .NET application with OpenShift.

Video Thumbnail
Video

Behind-the-scenes of .NET on Red Hat Enterprise Linux

Red Hat Developer Program

You may have heard Microsoft hearts Linux.  And soon you will be able to use .NET on Red Hat Enterprise Linux. While the pieces are still being finalized we are excited to share a behind-the-scenes sneak peek at how this will work for you. In this 2-hour webinar and demo, see: How .NET on Red Hat Enterprise Linux is coming together  What you can expect from the development experience  .NET on Red Hat Enterprise Linux in action

Technical How-to Books for Developers - Microservices, Design Patterns, .NET, Reactive, Databases Open configuration options
Article

Technical How-to Books for Developers - Microservices, Design Patterns, .NET, Reactive, Databases

Emily Parish

Within Red Hat knowledge sharing and collaboration are important. As a part of that many Red Hatters write books and we get the honor of sharing their knowledge with other developers. We have 7 more books in queue for the coming year and thought we would share the books you can currently download. Learn how to get started with a new technology. Learn why you would want to use new methodologies or technologies. Or just dive in a little deeper...

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 for getting started with...

Red Hat Summit logo
Article

O'Reilly Authors are Heading to Summit - microservices, raspberry pi hacks, .NET and more.

Emily Parish

Red Hat Summit is just around the corner in Boston and we are preparing just a few of the many Red Hat authors for their book signings. We've given them 6 steps to signing books: Step 1: Get books ordered. Step 2: Get to Boston. Step 3: Bring a marker. Step 4: Bring a spare marker. Step 5: Show up at the right time. Step 6: Enjoy sharing your work with attendees! Ok - so we may be teasing them...

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

Remote debug your ASP
Article

What's .NEW in .NET, Volume 1

Don Schenck

.NET Core continues to move forward at a rapid pace; this includes not only the framework but also the knowledge and tools related to it. Here are three recent highlights: LibYear, a "dotnet CLI tool for managing dependency freshness" Quicklink: https://stevedesmond.ca/blog/happy-libyear LibYear ( blog post here), written by Steve Desmond, uses your .csproj or project.json file as input and compares it to NuGet.org, producing a list of your dependencies and their freshness. That is, it checks to see if a...

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

Versions in Versions in Versions, AKA The .NET Core Russian Doll
Article

Versions in Versions in Versions, AKA The .NET Core Russian Doll

Don Schenck

Version One Point What? Ever wonder what version of .NET Core you are running? Well, that’s simple enough to figure out; simply drop to the command line and type dotnet. You'll see something like this: Okay, I have version 1.1.0 installed easy enough. Another way to show this is to type, dotnet --version and see something like this: Wait … what? “Preview”? But I didn’t download a preview. A quick check at the download page on the web proves that...

Article Thumbnail
Article

Edit, Compile and Debug .NET on Linux using VS Code

Don Schenck +1

One of the best features of Visual Studio is the ability to launch and debug an application from within the IDE. This is not an uncommon feature nowadays. When running .NET on Linux, however, you can't use Visual Studio as your IDE. What to do? The answer is Visual Studio Code, a free IDE that will allow you to edit, compile, launch, and debug your application from within your IDE. This post will guide you through this cycle. Note: I'm...

Article Thumbnail
Article

PowerShell on RHEL in One Minute

Don Schenck

While not specifically related to .NET on Linux, PowerShell on Linux is available and -- let's face it -- if you're a Windows developer you're using PowerShell. If you're not using PowerShell, now is the time to start. While bash is the traditional Linux shell, PowerShell gives you the advantage of objects. In PowerShell, everything is an object, with properties you can directly access. It's also a very powerful object-oriented scripting language, with classes and methods, much like any OOP...

A Practical Introduction to Docker Container Terminology
Article

The Evolution of a Linux Container

Don Schenck

(Probably, a more accurate title would be "The Evolution of a Linux Container Developer") Since .NET now runs on Linux (as well as Windows and macOS), the whole world of Linux containers and microservices has opened up to .NET developers. With a large pool of developers, a long track record of success, and performance numbers that are impressive, .NET offers a great opportunity to expand the world of Linux containers to formerly Windows-centric developers. While it’s tempting to rush in...

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

Red Hat Logo
Article

Architectural Cross-Cutting Concerns of Cloud Native Applications

Raffaele Spazzoli

Several organizations are wondering (and sometimes struggling on) how to port their current workloads to cloud environments. One of the main characteristics of a cloud environment is that the infrastructure is provisioned dynamically. This implies, for example, that we don’t know a priori where our resources are being allocated (we can find that out, though). VMs or containers will receive a dynamic IP. Storage will be allocated somewhere and attached to our VMs or containers and so on. So, how...