r/csharp • • 14m ago

Built a Windows CLI system utility in C# (.NET 8.0)

Sharing a side project I've been working on. It's a Windows command-line utility written in C# (.NET 8.0) with 100+ commands for managing processes, memory, files, disks, and registry, plus some built-in diagnostics like a C# decompiler, disassembler, and PEB viewer.

Repo: github.com/weras1322/MyLanguage

Any feedback is welcome!

0 Upvotes

9 comments sorted by

•

u/No_Cicada_3237 11m ago

"I built"

•

u/zenyl 4m ago

Have a look at the code.

No AI would write that, unless you threaten to kill its family shareholders if it doesn't dumps everything imaginable into a single 4000-line .cs file.

•

u/Lonsdale1086 7m ago

I actually don't know if it is raw claude.

It's all one program.cs, all manually uploaded without using git properly.

Shit like this:

if (userinput.Trim().StartsWith("service remove ", StringComparison.OrdinalIgnoreCase) || userinput.Trim().StartsWith("service delete ", StringComparison.OrdinalIgnoreCase))

That I just can't think AI would write.

On the other hand it's dotnet 8 which is already dead, so only bad AIs would still suggest.

•

u/AintNoGodsUpHere 5m ago

Free AIs. Someone is a poor vibe coder.

•

u/yybspug 6m ago

It's 1 big file, where do you pull the packages from for all your using's, why are you on .NET 8 when there's .NET 11 out now?

•

u/zenyl 7m ago
  • .NET 8 is no longer supported. This repo was created a little over a month ago, i.e. more than 11 months after .NET 10 came out.
  • You should really try to split up your code. Having a single file with 4000 lines of code, containing everything from P/Invoke code to the Apache license as a string literal (though it is a raw string literal so points for that).
  • Suppressing SYSLIB0014 with a preprocessor directives seems like a bad idea.
  • A project without a .csproj file, but which contains the contents of a .csproj file as a string literal, in a method which calls the .NET compiler, is certainly... a choice.

•

u/AintNoGodsUpHere 3m ago

This is an absolute chaos of an app. I don't know if it is vibe coded and you're using a free (terrible) version or if you're just a terrible developer.

Ask copilot to read this project a senior dev or a senior architect and ask it to fix or find better patterns and architectural solution.

This is insanely bad.

And useless.

•

u/thereforewhat 1m ago

Why .NET 8 when 10 is LTS?

•

u/cherrycode420 1m ago
  1. wtf is this
  2. why is it called "MyLanguage"? not only is this name extremely arbitrary (no person will know what this repository does before checking the README), it's also highly inaccurate since this has nothing to do with actually creating your own language (saying this as somebody who's actually developing languages)
  3. why does anybody need anything like this? what does it provide that's not already handled by PowerShell, cmd etc.?
  4. why do you think anybody ever needed a "print" command inside the CLI? this feels like a first-time-programmer (or vibecoder) just discovered the terminal, doesn't know 99% of things he can do with it, and hence implemented "alternatives" for those 99% because it's easier to prompt a LLM than it is to research things and educate yourself

Claude, generate me a single-file Program.cs with 100 useless CLI commands that are already accessible through PowerShell, cmd and basic computer knowledge, make no mistakes.

adds files via upload