Game Development with .NET

Abdullah Hamed

We’ve launched a new Game Development with .NET section on our site. It’s designed for current .NET developers to explore all the choices available to them when developing games. It’s also designed for new developers trying to learn how to use .NET by making games. We’ve also launched a new game development Learn portal for .NET filled with tutorials, videos, and documentation provided by Microsoft and others in the .NET game development community. Finally, we launched a step-by-step Unity get-started tutorial that will get you started with Unity and writing C# scripts for it in no time. We are excited to show you what .NET has to offer to you when making games. .NET is also part of Microsoft Game Stack, a comprehensive suite of tools and services just for game development.

A picture of a game controller

.NET for game developers

.NET is cross-platform. With .NET you can target over 25+ different platforms with a single code base. You can make games for, but not limited to, Windows, macOS, Linux, Android, iOS, Xbox, PlayStation, Nintendo, and mixed reality devices.

C# is the most popular programming language in game development. The wider .NET community is also big. There is no lack of expertise and support you can find from individuals and user groups, locally or online.

.NET does not just cover building your game. You can also use it to build your game’s website with ASP.NET, your mobile app using Xamarin, and even do remote rendering with Microsoft Azure. Your skills will transfer across the entire game development pipeline.

logos of some gaming platforms supported by .NET

Available game engines

The first step to developing games in .NET is to choose a game engine. You can think of engines as the frameworks and tools you use for developing your game. There are many game engines that use .NET and they differ widely. Some of the engines are commercial and some are completely royalty free and open source. I am excited to see some of them planning to adopt .NET 5 soon. Just choose the engine that better works for you and your game. Would you like to read a blog post to help you learn about .NET game engines, and which one would be best for you?

Online services for your game

If you’re building your game with .NET, then you have many choices on how to build your online game services. You can use ready-to-use services like Microsoft Azure PlayFab. You can also build from scratch on Microsoft Azure. .NET also runs on multiple operating systems, clouds, and services, it doesn’t limit you to use Microsoft’s platforms.

.NET has a rich set of tools

All the .NET tools you are used to also work when making games. Visual Studio is a great IDE that works with all .NET game engines on Windows and macOS. It provides word-class debugging, AI-assisted code completion, code refactoring, and cleanup. In addition, it provides real-time collaboration and productivity tools for remote work. GitHub also provides all your DevOps needs. Host and review code, manage projects, and build software alongside 50 million developers with GitHub.

An illustration of the person playing video games on a couch with a friend online

The ecosystem

The .NET game development ecosystem is rich. Some of the .NET game engines depend on foundational work done by the open-source community to create managed graphics APIs like SharpDX, SharpVulkan, Vulkan.NET, and Veldrid. Xamarin also enables using platform native features on iOS and Android. Beyond the .NET community, each game engine also has their own community and user groups you can join and interact with. .NET is an open-source platform with over 60,000+ contributors. It’s free and a solid stable base for all your current and future game development needs.

Learn more and start developing

Head to our new Game Development with .NET site to get an overview of what .NET provides for you when making games. If you never used Unity, get started with our step-by-step Unity get-started tutorial and script with C# as quick as possible. If you’re looking for tutorials, videos, and documentations to get your started, head to our new game development Learn portal for .NET for more resources.

Show us the work you do for .NET game development

We’d love to see the work you do for the .NET game developer. Please reach out to us if you’d like us to talk about the games you’re making, the APIs you’re developing, the plug-ins you’re distributing, or any .NET project remotely related to game development. Did you write a great blog post, or just read one? Do you want everyone to know about an amazing new .NET game development contribution or a useful plug-in or tool? Do you have an analysis of game development pipeline using .NET?

We’d love to hear from you, and feature your contributions on future posts:

  • Leave us a message in the comments section below
  • Send Abdullah (@indiesaudi) tips on Twitter about .NET game development.


Discussion is closed. Login to edit/delete existing comments.

  • 王宏亮 0

    TerraFX is an ambitious successor to SharpDX.

  • Ivan Efimov 0

    I would like to present NeoAxis Engine.
    It is C#, .NET Core based integrated development environment with built-in 3D, 2D game engine.

  • ai_enabled 0

    C# and .NET are a cornerstone of my game developer career since 2009. I’ve started as a C#/ASP.NET/WPF programmer but quickly became an indie game developer as it was my passion since early childhood. Now I have several successful titles shipped and looking in awe at the direction Microsoft has taken in the past few years by going open source with .NET—it was just a dream coming true!
    I’m a full-stack developer working on everything—from small bits of XAML UI elements and HLSL shaders up to the web sites and services, cloud deployment tools to manage our swarm of game servers, and everything between. I’ve created a custom game engine and made the first-ever game to feature .NET Roslyn compiler powering it to provide incredible modding capabilities and make our work much easier by quick iteration speed. Needless to say, it would require way more hands (and so, way higher budget) to achieve the same results over the years if my indie company was not using .NET!

    Since 2015 I’m working on CryoFall. It’s an online multiplayer survival game built on a custom game engine with a great number of C#/.NET-powered technologies:
    — .NET Core for game server runtime (and since 3.0, for game client runtime as well). It’s an incredible bit of technology providing a fast and robust framework for our needs, and most importantly—it runs flawlessly on Linux! One of our game servers hosted over 350 players online on a single CPU core in its peak—and it’s a fast-paced open-world game running on rock-stable 40 frames per second on the server side for weeks without maintenance reboots while simulating a massive world. The game server is also available as a Docker image based on an Alpine .NET Core image provided by Microsoft, making deployment it as easy as pulling and running the image! You can try it
    — Roslyn/.NET Compiler Platform for an unprecedented level of scripting and modding support. It’s a pillar of our in-house RENKEI Engine ( as we required an engine that allows us (and modders) to iterate very quickly while working with the game. The game is shipped with the completely open source game code and the game engine compiles it automatically. This way the engine offers live C# editing (in addition to live reloading of textures, sounds, music, XAML UI markup, HLSL shaders, etc). As far as I know, CryoFall is the only game that is brave and crazy enough to ship with the embedded Roslyn compiler! (At least at the time when the first public alpha utilizing this engine was shipped in March 2018)
    — NoesisGUI—a cross-platform middleware for vector UI in videogames and other applications. It’s 99.9% compatible with WPF/UWP API and XAML and using the same familiar tooling (Visual Studio and Blend) while providing support for all the major game engines. So an experienced WPF programmer could start building the game UI very quickly. Unlike WPF, it’s completely cross-platform (including consoles and mobiles) and has impressive performance and rendering quality that makes it a perfect choice for modern UI development in both C++ and C#. We’re using this tech since 2013 when it was just an obscure library, but now even major AAA games like Baldur’s Gate 3 from Larian Studios are created with this middleware! It’s especially important to mention that the previous popular UI vector library—Scaleform—was discontinued many years ago…the industry went through dark times. Surprisingly, it’s Microsoft-created XAML and WPF API that are getting recognition in gamedev now!
    — MonoGame. It’s a pity it was not mentioned in the article as it’s an opensource legacy of XNA—a powerful yet small game framework that was discontinued by Microsoft only to be reborn thanks to the massive community of indie developers. It’s ideal for making small 2D games where you know exactly what you may need (as we do, for our client part of the game engine) and don’t wish to get distracted by bloated complex engines. However, if you need an Editor to preview/edit scenes, want to manage hundreds of assets and prefabs, looking for visual scripting, or want to make a great 3D game with complex animations, you may want to try a real game engine—such as Stride (formerly Xenko)—a full-featured 100% open source C#/.NET game engine similar to Unity. I also had a fine experience with Unity (proprietary engine with great C# scripting), and heard good things about UE4 and CryEngine with C# bindings—but I often prefer to work from scratch! 🙂 By the way, here is my MonoGame NoesisGUI wrapper (it requires some updates for compatibility with the latest version that I could provide on the community request)
    — AtomicSerializer—custom .NET serialization library that I’m working on since 2016. It’s almost ready for a public open source release. It’s providing fast C# binary serialization with the object graph serialization and data scheme support for (auto-)versioning and minimal network overhead. It’s essential to provide both persistent and network serialization, and also to power sophisticated network state replication technics necessary for any large multiplayer game. As far as I know, there is still no viable alternative to this library (most are not providing object graph serialization, or don’t have support for data scheme saving/loading—that is essential for forward/backward compatibility of the persistent data) so I had to make my own back then and iterate on it over the years to make it full-featured.

    CryoFall offering a huge volume of educational material for any game developer, covering technologies like C#, NoesisGUI, XAML, HLSL. All the game source code, including game assets, hundreds of UI controls, dozens of shaders, etc, available in open source on GitHub the same code is included with the game client and there is also CryoFall Editor available for a complete modding experience. Though the API documentation is lacking as it’s limited to IntelliSense and Object Browser in Visual Studio to read the method comments, we did our best to write a clean and well-structured code.

    Thanks, Microsoft, and thousands of its employees, for empowering small indies with such incredible and reliable tools, and moving towards the future with the massive open source community! I’m looking forward to reading every “Game Development with .NET” post.

    Vladimir Kozlov aka ai_enabled

  • Michael Penner 0

    While this software definitely fits into the “niche” category, I will mention a system I’ve been building since mid-2015. The Eamon CS game engine is a C# port of the Wonderful World of Eamon that debuted on the Apple II many years ago. This is a text-based roleplaying game masquerading as an Interactive Fiction platform written for .NET Core with ports to Windows/Unix and Android. I have done some cursory testing with .NET 5 and it appears to work perfectly there too. It has 11 highly polished adventures built for it, and I’m always happy to assist anyone who wants to try their hand at building a new game.


    Michael Penner

  • John King 0

    I vote for Stride

  • inga trunova 0

    I can recommend online slots, which I myself play at Bets you these slots are really cool and they are cool to play in, and it pays too, so it is a reliable service. Going to the site, read the reviews below – what real people write, then I recommend to try to play.

Feedback usabilla icon