NOTE: This course was originally written using Visual Studio Express 2013 for Desktop. So, the screenshots and videos may look slightly different from the current version – Visual Studio Community Edition 2022. However, these lessons still work in the latest version.
At the end of this lesson, you will know how to…
- Install Visual Studio on your computer, to begin writing the game.
Installing Visual Studio Community 2022
To write a program, you need an editor – a specialized word processor for writing programs.
Most C# (and VB.Net) programmers use Visual Studio, from Microsoft.
The latest version (as of April 2022) is Visual Studio Community Edition 2022. It’s free to download and use. You can get it here:
Here’s a video on how to download and install Visual Studio Community Edition 2022. Please watch the video to the end, and there is information about the different forms of .NET. This will help prevent the biggest source of problems people have encountered – using .NET 5 or 6, when these lessons where written for .NET Framework.
Next Lesson: Lesson 02.2 – Building the solution for the game
Previous lesson: Lesson 01.1 – Defining classes and objects for the game
All lessons: Learn C# by Building a Simple RPG Index
should i get visual studio 2022 c++ or hunt down a copy of Visual Studio Community 2017. Thanks
You can use Visual Studio 2022 Community Edition (from https://visualstudio.microsoft.com/vs/community/)
When you create your solution, make sure you create the Windows Forms and Class Library projects as “.NET Framework” projects. In the image below, notice I entered “framework” and “C#” in the search boxes at the top, and the project descriptions include “(.NET Framework)” in their names.
Please let me know if you have any questions with creating the projects.
thankyou Scott looking forward to getting stuck in , i will buy you a coffee 🙂
By the way, there is a newer version of the course that uses WPF for the UI, instead of Windows Forms. It’s at https://soscsrpg.com/
Hi, I was wondering if this would still work if I used visual studio code as opposed to visual studio community. My hard drive is pretty full, and I already have Visual Studio Code and have been used to it for a while. thank you!
Yes, This should work with Visual Studio Code. However, you might want to look at the newer version of these lessons at https://soscsrpg.com. One thing to watch out for is that .NET Framework (the older version of .NET) might not be installed. You might only have .NET Core or .NET 5 or 6. If you follow the SOSCSRPG lessons, and use .NET Core or .NET 5/6, the game graphics won’t work for a while. One of the later lessons changes the way the graphics are displayed, so it works for all version of .NET.
Please let me know if that wasn’t clear (the way Microsoft handled changing .NET names is confusing) or if you have any other questions.