C
C#2y ago
NoobCoder

❔ VS Code and MacOS. Reverting back to old C# Template? (Top-Level Statements)

So I’m using a Mac. I’m just trying to get started in VS Code and start with C# because my goal is to move into Unity for GameDev. The tutorials that are a few years old and things have obviously been updated since then. All the tutorials I’ve watched used an older version of .NET and C# so now when I start a new project with .Net 7 there’s no top-level statements, which I understand is to make things easier but I’d like to revert back to the older template. What’s the best way to do that?
2 Replies
Angius
Angius2y ago
You can just manually write all the boilerplate Or use the --use-program-main flag when creating the project with dotnet new
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server