.NET

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

Red Hat adds .NET Core 1.1 to Red Hat Enterprise Linux and Red Hat OpenShift Container Platform

Mike Guerette

Today, we’re pleased to announce that .NET Core 1.1 is now available and supported on Red Hat Enterprise Linux and Red Hat OpenShift Container Platform. This second .NET Core release shows Red Hat’s continued commitment to opening up platform choices for enterprises seeking to use .NET in Linux environments, including container-centric operating systems. We’re also pleased to lead the way in the Linux world yet again with our support for .NET, as Red Hat Enterprise Linux is the only commercial...

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

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

Article Thumbnail
Article

Debugging .NET on Red Hat Enterprise Linux from Visual Studio

Don Schenck

Being able to edit your C# (or F# for that matter) code on your Linux VM from Visual Studio in Windows is pretty great. As a Windows developer, you're able to work in an environment you know and trust while still being able to experiment -- and hopefully produce production code -- in Linux, where you may not be quite up to speed. Yet. Visual Studio, that familiar, productive and helpful IDE, is at your fingertips even though your code...

Article Thumbnail
Article

How to install and configure Jenkins to build .NET apps on Red Hat Enterprise Linux

Andrew Male

In the process of writing my posts ( #1 and #2) on . NET Core and RHEL, it was made clear to me by several friends that I had neglected to use the de facto standard for continuous integration on Linux, Jenkins. Always happy to try out new (to me) tools, I settled in for what I was assured would be a simple configuration to test out my previous work in this bastion of automation. What is Jenkins? The first...

Article Thumbnail
Article

Using Visual Studio with Linux (Hint: Windows is still required)

Don Schenck

Running .NET on Linux, using the Red Hat Container Development Kit (CDK), means your Linux VM is running "headless" -- you don't have a desktop UI. You have a command line, and that's it. Note: If you aren't running .NET on Linux, hop over to the Red Hat Developer's web page and download the CDK to get started. Red Hat Enterprise Linux's built-in editor, VIM, which is launched by the command vi, is not a full-featured development environment. Not even...

Article Thumbnail
Article

Red Hat Enterprise Linux, DNX, and Azure Service Bus

Andrew Male

Service Bus is, according to Microsoft, “...a generic, cloud-based messaging system for connecting just about anything.” Most commonly used as an Azure service, it can be an excellent tool for managing non-critical workloads within an application and offers the benefit of being AMQP compatible when compared to Amazon’s SQS. Connecting to Service Bus (SB) on Windows is simple, but will the new .NET Core (DNX) platform be capable of the task? Library Adventures As of the writing of this post...

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

Article Thumbnail
Article

Gems: A Few Helpful dotnet commands

Don Schenck

This post may be short, but if you're new to .NET Core, it's valuable. After installing .NET on RHEL, you want to get up and running as quickly as possible. After all, what good is a framework without anything to show for it? Well, fearless developer, wait no more; here are a few dotnet commands that will take you from a command prompt to a web site, and beyond: By now, you might know this basic command to create a...

Article Thumbnail
Article

.NET Core Now Available and Supported on Red Hat Enterprise Linux and Red Hat OpenShift

Lincoln Baxter

Those looking to ascertain the ubiquitous nature of open source need look no further than the trajectory of .NET, Microsoft’s widely-adopted general development platform. In November 2014, Microsoft announced the open sourcing of .NET with .NET Core, a just-in-time (JIT) compiler and runtime for .NET. Then, in November 2015, Red Hat and Microsoft announced a landmark relationship, which established our collaboration with and promised access to .NET on the world’s leading enterprise Linux platform: Red Hat Enterprise Linux and Red...

Article Thumbnail
Article

A common interface for building developer tools

Gorkem Ercan

"There is already a command line for it, why can't my favorite editor support this language?" As a developer, you're probably familiar with this sentiment, and in reality t here has never been a better time to be a software developer. Developers have access to a growing list of languages, frameworks, libraries, and technologies that can help them solve the problems they are tasked to tackle. However, the abundance of choices often hinders the ability of Integrated Development Environments (IDEs)...

Article Thumbnail
Article

DevNation 2016 General Session to open with Microsoft's Scott Hanselman

Mike Guerette +1

We are delighted to share that Scott Hanselman of Microsoft will join Red Hat during the DevNation 2016 opening general session. Scott is one of the world's leading technical speakers who's been deeply involved in the community and on social media, with well over 150,000 Twitter followers. Join us at DevNation to learn what news news he may share. Lots of people know Scott, but if you don't, here's his BIO: Scott is a web developer who has been blogging...

Article Thumbnail
Article

Simplifying ASP.NET applications on OpenShift with the ASP.NET Core S2I Builder

Andrew Block

With recent changes the to the.NET ecosystem, developers of popular languages such as C# now have the ability to develop and deploy .NET applications across multiple platforms including OSX and Linux. This is made possible thanks to the .NET Core, a modular implementation of the .NET framework capable of supporting both web and console applications. Aside from opening up opportunities to a new pool of potential developers, .NET Core also enabled these applications to take advantage of certain technologies they...

Article Thumbnail
Article

Converting a .NET application to .NET Core (formerly DNX)

Andrew Male

In my first .NET core post, I set out on a journey to conquer the new world of .NET Core (formerly DNX) on Red Hat Enterprise Linux (RHEL). In my ignorance I believed I would do a short post on firing up RHEL, installing .NET Core, and then converting an application from .NET to .NET Core before adding it as a build job to a new TeamCity instance. The best laid plans seem to be the ones that get me...

Article Thumbnail
Article

A Windows Guy’s Guide: Setting up .NET Core on RHEL

Andrew Male

Despite spending plenty of time in Red Hat Linux while I was young, I have become an unabashed Windows environment super-user/programmer. Still, it’s hard to discount the multitude of ways that the *nix community stands ahead and alone, so when Microsoft and Red Hat announced their partnership to bring .NET to Linux, I had no choice but to take notice. As an experiment, I am going to go through setting up Red Hat Enterprise Linux (RHEL) and .NET Core to...

Article Thumbnail
Article

Getting MusicStore to run on RHEL

Don Schenck

The ASPNET Music Store application was built to demonstrate MVC and Entity Framework running on the newest .NET platform, including .NET Core. If you visit the link, you'll see that various platforms are mentioned, including Mono. However, you'll also notice that the instructions are dated: references to dnx and dnu are throughout the README file. This blog post will show how to bring MusicStore up-to-date and run it on Red Hat Enterprise Linux (RHEL). (If you don't have RHEL, you...

Article Thumbnail
Article

.NET on RHEL: I can't wait, and neither should you

Don Schenck

Red Hat is committed to making .NET a First Class citizen on Red Hat Enterprise Linux (RHEL). To that end, we're working furiously to make sure everything's perfect before we make .NET available by simply running: yum install rh-dotnetcore10 In the meantime, I can't wait. No, literally, I can't wait --- you don't need to either. You can hop over to Microsoft's .NET download site and get .NET for RHEL. (What? You didn't get your zero-dollar developer copy of RHEL...

Article Thumbnail
Article

DevNation 2016: Rick Wagner on .NET development with Red Hat Enterprise Linux

Lincoln Baxter III

Rick Wagner on .NET development with Red Hat Enterprise Linux - DevNation sneak peek is a behind-the-scenes preview of sessions and information that will take place at DevNation 2016. Sign up for DevNation at www.devnation.org. Learn more. Code more. Share more. Join the Nation.

Article Thumbnail
Article

.NET Entity Framework Core 1.0 RC2

Don Schenck

As .NET Core matures into a production-ready software product, more and more information is becoming available regarding what to expect. While the changes haven't been too big to understand, there are breaking changes and they do require that developers get some education before forging ahead. That applies to Entity Framework Core 1.0 (EF Core) as much as any other component of what is broadly termed ".NET Core". Granted, EF Core is not a part of .NET Core -- and neither...

Article Thumbnail
Article

.NET on Linux: Which Environment?

Don Schenck

If you are a Windows developer and you want to start writing .NET code in Linux, and you're not sure where to start, this article should help you understand some of the choices regarding your development environment. I’ll be using the Red Hat Enterprise Linux Developer Suite (RHEL) as my Linux of choice, which is freely downloadable for development use. It's also worth mentioning that how you actually install RHEL will affect your development experience. The up-front work to get...

Article Thumbnail
Article

ASPNET MVC Core 1.0

Don Schenck

With the advent of .NET Core 1.0, things have changed. Dramatically. For starters, it's open source. This means anyone, including you and I, can submit bug fixes and enhancements to the .NET framework. It will now run on Mac and Linux. You can compile code natively to the platform of your choice. And beyond that, it's much more modular. There's the Common Language Runtime (CLR), the CoreFX (where the "System." libraries live), the Command Line Interface (CLI), and other modules...

Article Thumbnail
Article

All Together Now: .NET, RHEL, Hyper-V and VSCode

Don Schenck

I'm a .NET developer at heart, and I want to write C# code that runs natively in Linux - Red Hat Enterprise Linux (RHEL), to be specific. So, I hopped over to the Red Hat .NET Developers web site, installed the CDK and was up and running in short order. I had a no-cost developer's copy of RHEL running on my PC and was writing .NET code. Life was good. I had my instance of RHEL inside a Vagrant Box...