✅ How to create new cs and csproj files?
On the screenshot, there's only the python files but not the c# ones, yes i have downloaded the c# extension and it's dependencies.
10 Replies
I would follow the rest of the documentation linked in $vscode
Follow the instructions here on getting started with DevKit for C# in VSCode: https://code.visualstudio.com/docs/csharp/get-started
Get started with C# and .NET in Visual Studio Code
Getting Started with C# and .NET Development in Visual Studio Code
Specifically, there's a page on project management: https://code.visualstudio.com/docs/csharp/project-management
wait it requires a subscription??
No
If you can use VS Community, you can use the VSCode extension
Basically, if you're not doing commercial work meeting a certain revenue/employee threshold
got it, so it's actually called .net and not c# xD
The language is C#. The platform C# runs on is called .NET
Like how Javascript runs on a platform called <insert the name of your browser here>
ahh okay
by the way, is there a way to make the execution of the code faster? it kinda feels a bit too slow compared to python but then again it might be because i runned it on another platform and not on my pc
it takes more than 2 seconds to print out a simple hello world sentence lol
(even without the debugger)
its not the code itself that is "slow", its the startup. It can be sped up in a few different ways, but they all have tradeoffs.
One is compiling your app in release configuration instead of debug configuration. Not something you do during development usually.
Another alternative is "publishing" your app in NAOT mode. This is "native ahead of time" compilation, which means the code gets compiled to native directly instead of to IL. This has a lot of tradeoffs in terms of how you must write your code to support this.
in short, don't worry about a 1-2 second startup delay before your code is run. Thats normal and not an issue.
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View