How to make a C# project on VS code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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!

4th Jan 2020, 5:06 AM
Bono
Bono - avatar
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.
4th Jan 2020, 5:43 AM
David Carroll
David Carroll - avatar
+ 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, ...
4th Jan 2020, 9:06 AM
grdr
+ 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
4th Jan 2020, 5:18 AM
Tibor Santa
Tibor Santa - avatar
+ 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.
5th Jan 2020, 8:13 AM
Tibor Santa
Tibor Santa - avatar
+ 2
David Carroll thanks for the advice , i really found it easier and much better :)
4th Jan 2020, 6:00 AM
Bono
Bono - avatar
+ 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.
5th Jan 2020, 5:40 AM
Nehal Patel
Nehal Patel - avatar
+ 1
Gregor Dietrich Great point! I also find myself switching between the Jetbrains products and VS Code for various reasons as well. 😉👌
4th Jan 2020, 3:39 PM
David Carroll
David Carroll - avatar
+ 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
21st Mar 2020, 10:29 AM
Ankush Thakur
Ankush Thakur - avatar