+ 2
How to make a C# project on VS code?
I downloaded Vs code and .Net Sdk, but there is a small box at the bottom says that "The .NET Core cannot be located" . How can i fix that. Note: I am new at VS code!
8 Answers
+ 5
Bono After you get it working in VS Code, you might want to try installing Visual Studio 2019 Community Edition for comparison.
While I love VS Code for most other types of projects, it pales in comparison with Visual Studio 2019 for .NET related projects.
DISCLAIMER:
I've not personally used the Community Edition. I only work with the Professional Edition. However, I'm certain the experience will be similar and enough from a student's point of view.
+ 4
I also agree, Visual Studio CE is vastly superior for C# and C++ development. while VS Code has so many features and plugins that allow it to become something like a full-fledged IDE, it's originally just a text editor, while Visual studio already is an IDE out of the box.
personally I use specialized IDEs also for python (pycharm community edition) and PHP (phpStorm, no free edition), but I still love VS Code for doing quick edits where I don't want to load the whole project just to edit a single file. It's basically an open source, cross-platform alternative to Notepad++, and I also use it for html, css, SQL, JavaScript, ...
+ 3
There are some pretty detailed steps here how to get started. Make sure you install also the c# plugin in vscode.
https://docs.microsoft.com/en-us/dotnet/core/tutorials/with-visual-studio-code
+ 3
To be fair, you can easily use VS Code with .net Core if you don't have to build GUI apps and such like.
Visual Studio 2019 gives additional support for .net Framework and asp.net projects.
+ 2
David Carroll thanks for the advice , i really found it easier and much better :)
+ 2
You have to use Visual studio 2019 community. I also confused between VS Code and Visual studio for C# project and found that for .net project you have to use visual studio 2019.
+ 1
Gregor Dietrich Great point! I also find myself switching between the Jetbrains products and VS Code for various reasons as well. đđ
+ 1
Listen to use c# in VS code
First in Terminal windows type
dotnet new console
Your file will bw builded automatically
You will get a program.cs file
if you want to build or run your code
Use commands
dotnet run
dotnet build