Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

.NET on Linux: Which Environment?

May 17, 2016
Don Schenck
Related topics:
.NETLinux
Related products:
Red Hat Enterprise Linux

    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 a full-blown, GUI-based version of RHEL running is, I believe, worth the payoff later. However, you may choose to get up and running quickly in a command line environment and defer the GUI work until later.

    Some of your choices include:

    • Run RHEL on bare metal. That is, install it directly onto a PC. You can choose this option and run with or without a graphical interface (such as Gnome).
    • Run RHEL locally using a hypervisor/virtual machine (Hyper-V, VirtualBox, VMware) on your Windows environment. This requires that your version of Windows supports virtualization (e.g. Windows 10 Professional). You can choose this and run without a GUI. Alternatively, you can install a GUI, which is what I recommend -- more about that later.
    • Finally, you could use a cloud-based VM running RHEL (Typically no GUI).

    RHEL on Bare Metal

    If you choose to install RHEL on bare metal, you're most likely going to want to use Gnome for a GUI. That will allow you to also run Visual Studio Code (VSCode) - Microsoft's free code editor (based on Electron). This option offers the best performance, but it does mean you need a physical machine. This configuration basically involves installing RHEL from the ISO file and going from there. In this scenario, you're living and working in Linux. You can edit and debug your code from within the IDE (VSCode) and you won't need to install a lot of supporting software - pretty much everything you need will be in one place: inside RHEL. You may, however, end up lugging around two notebooks PCs, or setting up a "dual boot" environment on your single machine.

    RHEL in a Virtual Machine

    Running a Virtual Machine (VM), whether on you are on a local PC or in the cloud, gives you the option of choosing between a command line or a GUI. It also means you can leave your Windows PC alone. You can run RHEL simply as a console (i.e. you open a bash shell terminal on your Windows PC), or as a desktop, using VNC to connect. Let's explore these two options a little.

    Headless (No GUI)

    Running RHEL without a GUI ("headless") means you'll need a bash shell on your Windows machine. Microsoft has made this available now (it's a beta), or you can use a third party solution such as Cygwin. This isn't a bad thing, because you can start to use the bash shell for all your command-line operations, even against  your Windows file system. You benefit in that you learn bash and use it everywhere.

    Running headless also means you'll probably edit your code on your Windows PC and then either save then in a folder that is shared between the host and the VM. You can also use a git repositoryto push code from your Windows PC and pull from the VM via the bash command line. Lastly, as I explain in a recent blog post, you can set up direct filesystem sharing using Samba (this is the most work to set up, but the least work go use). The biggest limitation? You won't be able to debug your code from within VSCode. That's a big deal if you ask me. In fact, I consider it a show-stopper. (And I'll explain how to get that working in a future blog post.)

    With GUI

    Running RHEL with a GUI, especially in a VM on your local Windows PC, is a full-feature environment. You use one PC. You keep Windows. Best of all, you can run VSCode on Linux, which means you can debug your code from within your IDE. You can set breakpoints, inspect variables, see the stack trace ... everything you need for a full-featured interactive debugging session. There are some considerations, however.

    If you're using Hyper-V, you'll likely want to install the VNC server on your RHEL VM, and install the corresponding VNC client on Windows. This is due to the fact that changing screen resolutions on Hyper-V can prove difficult or impossible. (This issue does not occur with some of the other VM technologies listed above.)

    I use TightVNC on Windows, and it works very well. You'll also want to use Cygwin to SSH into your VM and run common commands from the command line. For example, yeoman and Autorest are both command line tools that you'll probably want to use.

    For me, being able to summon my RHEL environment with a few mouse clicks and enjoy the rich, feature-laden experience of coding and debugging from the IDE makes this the best option.

    Conclusion

    No matter which environment you choose, you'll be well on your way to creating .NET code that can almost anywhere, including Linux. Get started now by downloading your developer's copy of RHEL and setting up your environment.

    Additional Resources:

    .NET on RHEL Webinar (video)

    Red Hat Enterprise Linux Developer Suite

    Linux commands cheat sheet

    Red Hat Developer's site for .NET

    Visual Studio Code

    Cywin bash shell for Windows

    TightVNC for Windows

    Microsoft's .NET site

    For additional information and articles on .NET Core visit our .NET Core web page for more on this topic.

     

    Last updated: March 15, 2023

    Recent Posts

    • Red Hat Hardened Images: Top 5 benefits for software developers

    • How EvalHub manages two-layer Kubernetes control planes

    • Tekton joins the CNCF as an incubating project

    • Federated identity across the hybrid cloud using zero trust workload identity manager

    • Confidential virtual machine storage attack scenarios

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.