J
J
John Norton2021-03-01 21:57:54
C++ / C#
John Norton, 2021-03-01 21:57:54

How to run a C# project in Visual studio code?

In short, I'm not experienced yet and I don't know how to run my code in Visual studio code.

Yes, I know that this program is intended for experienced people, but I really liked its design) Unfortunately, I'm only learning programming, i.e. base part. And I would like to understand how to compile your code and run it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-03-01
@John_Norton

  1. Install .net 6 SDK

  2. Install all required plugins:
    • C#
    • vscode-solution-explorer
    • MSBuild project tools

  3. Create a new project according to the guide
  4. Open the project folder in vs code
  5. You press the debug button and launch
    it (on the first run, it may remind you that the debugger has a decompiler that is illegal to use on other people's applications - we agree with this)
    603d3bb386701819998214.png
    If anything - select .net Core
    603d3bf3168e0691109502.png
    As a result, the desired button will appear
    603d3c19c5f27607073624.png

To launch without debugging, you will need to delve into launch.json, or use the console
PS: In general, I advise you to use a full-fledged studio - it may be scary at first glance, but it is much more convenient than vs code. (well, everything works out of the box in it, which is important for beginners)
PPS: And there is also Rider - for a professional developer it costs a penny $ 15 per month, and for a schoolboy or student it is generally free. At the same time, it provides a whole bunch of useful tools, especially for gamedev, if you are interested in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question