Do I need to use Visual Studio to program in C#?

Asked

Viewed 674 times

9

I want to learn C# to become one of my main languages, but my current PC is kind of outdated and ends up not running Visual Studio well, but with Visual Studio Code it’s okay, I need Visual Studio to program in C#? even in the future if I work with C# and . NET for example, because I also saw that it is only available on Windows, so what would be the option for Linux users who use it for web projects on. net core for example?

  • In linux you have the Monodevelop IDE that allows you to develop in C# and even use GTK graphical interface

2 answers

8


You don’t need Visual Studio for anything, totally optional. In fact even Code is not necessary, although it starts to have a little more complication. An IDE helps a lot to have productivity, and the better the IDE the more advantages it has, so the VS full is just the most interesting.

The rest of the question is very confusing and I don’t understand, but I always recommend people use the .NET Core.

  • but whenever I see how to install an updated c# interpreter or the development kit is always teaching to download the visual studio, please have the necessary components to develop in c# separately for me to install?

  • 1

    C# has compiler and no interpreter. If you have . NET on your machine you don’t need anything else.

1

Complementing Maniero’s response, there is really no need for an IDE to program, with . NET Core for example you can program with the notepad (going in the example more "Roots"), for example:

dotnet new console

Open your favorite editor:

Notepad Program.cs

Now the code:

using System;

namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("alterando código pelo Notepad");
        }
    }
}

Change the WriteLine for something of your choice.

dotnet run

Upshot:

inserir a descrição da imagem aqui

Below a link with commands from . Net Core CLI

https://docs.microsoft.com/en-us/dotnet/core/tools/? tabs=netcore2x

Now a personal opinion, and I did on an old PC I have (normal Core i5/4gb/Hdd) I installed Ubuntu Desktop, VS Code and Jetbrains Rider (paid but I like it a lot) rs. I managed to manage well with both to solve simple things in projects :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.