Press "Enter" to skip to content

Lesson 02.1 – Installing Visual Studio Community Edition

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.

 

Lesson objectives

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:

https://visualstudio.microsoft.com/vs/community/

 

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

 

10 Comments

  1. theoc
    theoc April 13, 2022

    should i get visual studio 2022 c++ or hunt down a copy of Visual Studio Community 2017. Thanks

    • Scott Lilly
      Scott Lilly April 13, 2022

      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.

      • theoc
        theoc April 13, 2022

        thankyou Scott looking forward to getting stuck in , i will buy you a coffee 🙂

  2. Aeden MS
    Aeden MS December 6, 2022

    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!

    • Scott Lilly
      Scott Lilly December 6, 2022

      Hi Aeden,

      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.

  3. Newbie Gamer
    Newbie Gamer October 24, 2023

    It says “video is not available”. Could you be so kind to fix it? If there are some unobvious moments

    • Scott Lilly
      Scott Lilly October 24, 2023

      Thanks for letting me know. It should be fixed now.

      • Newbie Gamer
        Newbie Gamer October 25, 2023

        Thank you! Yes it’s fixed but I’m using Mac version of VS and it will discontinued from 31 August 2024. Also, installation process is much more different on a Mac, installer won’t even give so much option during installation. Also, there are completely different project types when creating a new project. Any ideas or alternatives on what to do in this case? On a Mac the only options I’ve got is to create multiplatform .NET MAUI App or MAUI Blazor App. I’m completely unaware of how different it may be and what it means

        • Scott Lilly
          Scott Lilly October 25, 2023

          These lessons are written for a Windows Forms project, which cannot run on Mac. It would only run on a Windows. The only way it would work is if you have a virtual machine program on your Mac that lets you create a Windows VM, like VMWare Fusion, Parallels Desktop, or Virtual Box.

          If you want to learn C# on a Mac, you could use VS Code (a free program like Visual Studio, but runs on Mac and Linux). Instead of building a Windows Forms project, you could use a cross-platform library like AvaloniaUI, which is like WPF (a different way to handle the UI part of the program).

          Unfortunately, I don’t know any good guides for that. There probably are some, but I don’t know about them.

Leave a Reply

Your email address will not be published. Required fields are marked *