C
C#8mo ago
Kushiwushi

✅ 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.
No description
10 Replies
333fred
333fred8mo ago
I would follow the rest of the documentation linked in $vscode
MODiX
MODiX8mo ago
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
333fred
333fred8mo ago
Specifically, there's a page on project management: https://code.visualstudio.com/docs/csharp/project-management
Kushiwushi
KushiwushiOP8mo ago
wait it requires a subscription??
333fred
333fred8mo ago
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
Kushiwushi
KushiwushiOP8mo ago
got it, so it's actually called .net and not c# xD
333fred
333fred8mo ago
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>
Kushiwushi
KushiwushiOP8mo ago
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)
Pobiega
Pobiega8mo ago
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
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server